.
This commit is contained in:
1 parent
4dba82ca03
commit
6609098037
2 files changed
+5
-3
No files matched your search
@@ -208,7 +208,7 @@ export class LegacyImportService {
|
||||
state: { $in: ['pending', 'running'] },
|
||||
},
|
||||
{ $set: { state: 'cancelled', completedAt: new Date() } },
|
||||
{ new: true },
|
||||
{ returnDocument: 'after' },
|
||||
).exec();
|
||||
if (!job) throw new NotFoundException('Running legacy import job not found.');
|
||||
await this.garnetService.delete(this.communityLockKey(params.communityId));
|
||||
|
||||
Reference in new issue
Block a user