Skip to content

Commit 37af5f9

Browse files
committed
fix: correct spelling of updateJobFieldsAtomically method and error messages
1 parent 06feedf commit 37af5f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,12 +404,12 @@ export default class BackgroundJobsPlugin extends AdminForthPlugin {
404404
return JSON.parse(state);
405405
}
406406

407-
public async updateJobFieldsAtomicly(jobId: string, updateFunction: () => Promise<void>) {
407+
public async updateJobFieldsAtomically(jobId: string, updateFunction: () => Promise<void>) {
408408
if (!jobId) {
409-
throw new Error('updateJobFieldsAtomicly: jobId is required');
409+
throw new Error('updateJobFieldsAtomically: jobId is required');
410410
}
411411
if (typeof updateFunction !== 'function') {
412-
throw new Error('updateJobFieldsAtomicly: updateFunction must be a function');
412+
throw new Error('updateJobFieldsAtomically: updateFunction must be a function');
413413
}
414414

415415
// Ensure updates are atomic per jobId.

0 commit comments

Comments
 (0)