Browse Source

fix: missing await for jobid generation (#9877)

pull/9885/head
Mert E. 13 hours ago committed by GitHub
parent
commit
1f11afbc56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/nocodb/src/modules/jobs/fallback/jobs.service.ts
  2. 2
      packages/nocodb/src/modules/jobs/redis/jobs.service.ts

2
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, {

2
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, {

Loading…
Cancel
Save