We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9403fbe commit e62861cCopy full SHA for e62861c
backend/src/services/queue.service.ts
@@ -4,6 +4,7 @@ import { InjectRepository } from '@nestjs/typeorm';
4
import {
5
FindOptionsWhere,
6
In,
7
+ IsNull,
8
LessThan,
9
Like,
10
MoreThan,
@@ -171,8 +172,12 @@ export class QueueService implements OnModuleInit {
171
172
success: boolean;
173
fileCount: number;
174
}> {
175
+ // search for files with no hash (empty or null) and state OK
176
const files = await this.fileRepository.find({
- where: { hash: '', state: FileState.OK },
177
+ where: [
178
+ { hash: IsNull(), state: FileState.OK },
179
+ { hash: '', state: FileState.OK },
180
+ ],
181
relations: ['mission', 'mission.project'],
182
});
183
0 commit comments