diff --git a/packages/nocodb/src/modules/jobs/fallback/jobs.service.ts b/packages/nocodb/src/modules/jobs/fallback/jobs.service.ts index 28af9ba93a..a201281336 100644 --- a/packages/nocodb/src/modules/jobs/fallback/jobs.service.ts +++ b/packages/nocodb/src/modules/jobs/fallback/jobs.service.ts @@ -64,7 +64,7 @@ export class JobsService implements OnModuleInit { if (!jobData) { if (SKIP_STORING_JOB_META.includes(name as JobTypes)) { jobData = { - id: Noco.ncMeta.genNanoid(MetaTable.JOBS), + id: await Noco.ncMeta.genNanoid(MetaTable.JOBS), }; } else { jobData = await Job.insert(context, { diff --git a/packages/nocodb/src/modules/jobs/redis/jobs.service.ts b/packages/nocodb/src/modules/jobs/redis/jobs.service.ts index 0d2c1df69b..310ae2deae 100644 --- a/packages/nocodb/src/modules/jobs/redis/jobs.service.ts +++ b/packages/nocodb/src/modules/jobs/redis/jobs.service.ts @@ -101,7 +101,7 @@ export class JobsService implements OnModuleInit { if (!jobData) { if (SKIP_STORING_JOB_META.includes(name as JobTypes)) { jobData = { - id: Noco.ncMeta.genNanoid(MetaTable.JOBS), + id: await Noco.ncMeta.genNanoid(MetaTable.JOBS), }; } else { jobData = await Job.insert(context, {