diff --git a/src/structures/services/structures.service.ts b/src/structures/services/structures.service.ts index 09a8fa5d500fd2cb15779df84759ba1d88cd7acc..14bf1e2859859e3aa7196d8319ec0be22ac46ce1 100644 --- a/src/structures/services/structures.service.ts +++ b/src/structures/services/structures.service.ts @@ -104,7 +104,7 @@ export class StructuresService { .exec(); } - return await structures.sort((a, b) => ids.indexOf(a.id) - ids.indexOf(b.id)); + return structures.sort((a, b) => ids.indexOf(a.id) - ids.indexOf(b.id)); } public async create(idUser: string, structure: StructureDto): Promise<Structure> { @@ -222,7 +222,7 @@ export class StructuresService { } }) ); - return await this.structureModel.find({ deletedAt: { $exists: false }, accountVerified: true }).exec(); + return this.structureModel.find({ deletedAt: { $exists: false }, accountVerified: true }).exec(); } public async findAllUnclaimed(): Promise<UnclaimedStructureDto[]> {