From cf7f8d7836aa84faeb85137350c78c5b8b6c92a1 Mon Sep 17 00:00:00 2001 From: Aramis Sennyey <159921952+aramissennyeydd@users.noreply.github.com> Date: Mon, 8 Apr 2024 21:10:20 -0400 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Fredrik Adelöw Signed-off-by: Aramis Sennyey <159921952+aramissennyeydd@users.noreply.github.com> Signed-off-by: aramissennyeydd --- docs/plugins/backend-plugin.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/plugins/backend-plugin.md b/docs/plugins/backend-plugin.md index 827d82c4cf..a47df2a106 100644 --- a/docs/plugins/backend-plugin.md +++ b/docs/plugins/backend-plugin.md @@ -108,7 +108,7 @@ That will give you a [Knex](http://knexjs.org/) connection object. ```ts title="plugins/carmen-backend/src/plugin.ts" export const carmenPlugin = createBackendPlugin({ - pluginId: 'carmenPlugin', + pluginId: 'carmen', register(env) { env.registerInit({ deps: { @@ -125,7 +125,7 @@ export const carmenPlugin = createBackendPlugin({ }) { // You will then pass this client into your actual plugin implementation // code, maybe similar to the following: - const model = new CarmenDatabaseModel(db); + const model = new CarmenDatabaseModel(database); httpRouter.use( await createRouter({ // highlight-next-line