Skip to content

Commit f6b4051

Browse files
Merge pull request #1674 from Tony133/docs/typeorm
docs(typeorm): fix warning and hint
2 parents da9aa75 + af95f07 commit f6b4051

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/recipes/sql-typeorm.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export const photoProviders = [
107107
];
108108
```
109109

110-
> warning **Notice** In the real-world applications you should avoid **magic strings**. Both `PHOTO_REPOSITORY` and `DATABASE_CONNECTION` should be kept in the separated `constants.ts` file.
110+
> warning **Warning** In the real-world applications you should avoid **magic strings**. Both `PHOTO_REPOSITORY` and `DATABASE_CONNECTION` should be kept in the separated `constants.ts` file.
111111
112112
Now we can inject the `Repository<Photo>` to the `PhotoService` using the `@Inject()` decorator:
113113

@@ -151,4 +151,4 @@ import { PhotoService } from './photo.service';
151151
export class PhotoModule {}
152152
```
153153

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

0 commit comments

Comments
 (0)