Skip to content

Commit 831d9c0

Browse files
committed
fix: update foreign resource ID and upgrade mysql2 dependency
1 parent 951e470 commit 831d9c0

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

adminforth/documentation/docs/tutorial/07-Plugins/15-ForeignInlineShow.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ Import plugin:
1212
npm i @adminforth/foreign-inline-show --save
1313
```
1414

15-
```ts title="./resources/adminuser.ts"
15+
```ts title="./resources/apartments.ts"
16+
import { AdminForthDataTypes, AdminForthResourceInput } from 'adminforth';
1617
import ForeignInlineShowPlugin from '@adminforth/foreign-inline-show';
17-
import { AdminForthResource, AdminForthResourceColumn } from 'adminforth';
1818
```
1919

2020

@@ -53,7 +53,7 @@ Add to your `'apartments'` resource configuration the plugin instance:
5353
//diff-add
5454
new ForeignInlineShowPlugin({
5555
//diff-add
56-
foreignResourceId: 'users',
56+
foreignResourceId: 'adminuser',
5757
//diff-add
5858
}),
5959
//diff-add

adminforth/package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

adminforth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"jsonwebtoken": "^9.0.2",
8080
"listr2": "^8.2.5",
8181
"mongodb": "6.6",
82-
"mysql2": "^3.12.0",
82+
"mysql2": "^3.14.2",
8383
"node-fetch": "^3.3.2",
8484
"pg": "^8.11.5",
8585
"recast": "^0.23.11",

0 commit comments

Comments
 (0)