Skip to content

Commit

Permalink
refactor(query-typeorm): Fixed deleteResult used before assigned ty…
Browse files Browse the repository at this point in the history
…pe error
  • Loading branch information
TriPSs committed Oct 28, 2021
1 parent 53c6c6b commit 1567614
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export class TypeOrmQueryService<Entity>
* @param filter - A `Filter` to find records to delete.
*/
async deleteMany(filter: Filter<Entity>, opts?: DeleteManyOptions<Entity>): Promise<DeleteManyResponse> {
let deleteResult: DeleteResult;
let deleteResult = {} as DeleteResult;
if (this.filterQueryBuilder.filterHasRelations(filter)) {
const builder = this.filterQueryBuilder.select({ filter })
.distinct(true);
Expand Down

0 comments on commit 1567614

Please sign in to comment.