Apply suggestions from code review

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Aramis Sennyey <159921952+aramissennyeydd@users.noreply.github.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
Aramis Sennyey
2024-04-08 21:10:20 -04:00
committed by aramissennyeydd
parent 335151a281
commit cf7f8d7836
+2 -2
View File
@@ -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