Skip to content

Commit 8890beb

Browse files
Merge pull request #1675 from Tony133/docs/sequelize
docs(sequelize): fix warning and hint
2 parents f6b4051 + 054e028 commit 8890beb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/recipes/sql-sequelize.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const databaseProviders = [
4242
];
4343
```
4444

45-
> warning **Hint** Following best practices, we declared the custom provider in the separated file which has a `*.providers.ts` suffix.
45+
> info **Hint** Following best practices, we declared the custom provider in the separated file which has a `*.providers.ts` suffix.
4646
4747
Then, we need to export these providers to make them **accessible** for the rest part of the application.
4848

@@ -94,7 +94,7 @@ export const catsProviders = [
9494
];
9595
```
9696

97-
> **Notice** In the real-world applications you should avoid **magic strings**. Both `CATS_REPOSITORY` and `SEQUELIZE` should be kept in the separated `constants.ts` file.
97+
> warning **Warning** In the real-world applications you should avoid **magic strings**. Both `CATS_REPOSITORY` and `SEQUELIZE` should be kept in the separated `constants.ts` file.
9898
9999
In Sequelize, we use static methods to manipulate the data, and thus we created an **alias** here.
100100

@@ -140,4 +140,4 @@ import { DatabaseModule } from '../database/database.module';
140140
export class CatsModule {}
141141
```
142142

143-
> warning **Hint** Do not forget to import the `CatsModule` into the root `ApplicationModule`.
143+
> info **Hint** Do not forget to import the `CatsModule` into the root `ApplicationModule`.

0 commit comments

Comments
 (0)