Skip to content

Commit 15872a4

Browse files
committed
fix: correct spelling of 'updateJobFieldsAtomically' in I18nPlugin class
1 parent 069661b commit 15872a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ export default class I18nPlugin extends AdminForthPlugin {
574574

575575
const backgroundJobsPlugin = this.adminforth.getPluginByClassName<any>('BackgroundJobsPlugin');
576576

577-
backgroundJobsPlugin.updateJobFieldsAtomicly(jobId, async () => {
577+
backgroundJobsPlugin.updateJobFieldsAtomically(jobId, async () => {
578578
// do all set / get fields in this function to make state update atomic and there is no conflicts when 2 tasks in parallel do get before set.
579579
// don't do long awaits in this callback, since it has exclusive lock.
580580
let totalUsedTokens = await backgroundJobsPlugin.getJobField(jobId, 'totalUsedTokens');

0 commit comments

Comments
 (0)