From 9b47ba22519523f32f801dbe583a2e815d72d0b0 Mon Sep 17 00:00:00 2001 From: chenos Date: Tue, 16 Aug 2022 22:30:31 +0800 Subject: [PATCH] Update custom-plugin.ts --- examples/app/custom-plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/app/custom-plugin.ts b/examples/app/custom-plugin.ts index 4dcc92fef..e44650559 100644 --- a/examples/app/custom-plugin.ts +++ b/examples/app/custom-plugin.ts @@ -36,7 +36,7 @@ class MyPlugin extends Plugin { return 'MyPlugin'; } async load() { - app.resource({ + this.app.resource({ name: 'test', actions: { async list(ctx) {