Skip to content

Commit 1db5e92

Browse files
committed
docs: update docs for the background jobs plugin
1 parent 54bf9e8 commit 1db5e92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ After registering a handler, you can create a job. For example:
235235
//diff-add
236236
async (req: any, res: any) => {
237237
//diff-add
238-
const backgroundJobsPlugin = admin.getPluginByClassName<BackgroundJobsPlugin>('default');
238+
const backgroundJobsPlugin = admin.getPluginByClassName<BackgroundJobsPlugin>('BackgroundJobsPlugin');
239239
//diff-add
240240
if (!backgroundJobsPlugin) {
241241
//diff-add
@@ -397,7 +397,7 @@ Finally, register this component alongside the job task handler:
397397
```ts title="./index.ts"
398398
...
399399

400-
const backgroundJobsPlugin = admin.getPluginByClassName<BackgroundJobsPlugin>('default');
400+
const backgroundJobsPlugin = admin.getPluginByClassName<BackgroundJobsPlugin>('BackgroundJobsPlugin');
401401

402402
backgroundJobsPlugin.registerTaskHandler({
403403
jobHandlerName: 'example_job_handler', // Handler name

0 commit comments

Comments
 (0)