de-duplicate import jobs

This commit is contained in:
Hazelnoot 2025-07-26 19:34:58 -04:00
parent 7da9225104
commit 4b29d59a9b
4 changed files with 28 additions and 5 deletions

View file

@ -82,7 +82,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
if (currentAntennasCount + antennas.length >= (await this.roleService.getUserPolicies(me.id)).antennaLimit) {
throw new ApiError(meta.errors.tooManyAntennas);
}
this.queueService.createImportAntennasJob(me, antennas);
await this.queueService.createImportAntennasJob(me, antennas, file.id);
});
}
}