Skip to content

Commit ed11c92

Browse files
committed
docs: update docs for the background job plugin
1 parent e70fcef commit ed11c92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adminforth/documentation/docs/tutorial/08-Plugins/23-background-jobs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,10 +439,10 @@ For example:
439439
```ts
440440
...
441441
//diff-add
442-
import { useJobInfoStore } from '@/custom/plugins/BackgroundJobsPlugin/useBackgroundJobPlugin.ts';
442+
import { useBackgroundJobApi } from '@/custom/plugins/BackgroundJobsPlugin/useBackgroundJobApi.ts';
443443

444444
//diff-add
445-
const jobInfoStore = useJobInfoStore();
445+
const backgroundJobApi = useBackgroundJobApi();
446446

447447
const res = await callAdminForthApi({
448448
path: `/plugin/${props.meta.pluginInstanceId}/translate-selected-to-languages`,
@@ -458,7 +458,7 @@ For example:
458458
const jobId = res.jobId;
459459
if (jobId) {
460460
//diff-add
461-
jobInfoStore.openJobInfoPopup(jobId);
461+
backgroundJobApi.openJobInfoPopup(jobId);
462462
}
463463
}
464464

0 commit comments

Comments
 (0)