Skip to content

Commit 013d5e6

Browse files
authored
update name of magic string used
update name of magic string used to correctly reflect code
1 parent c2d66ee commit 013d5e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/recipes/sql-typeorm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export const photoProviders = [
111111
];
112112
```
113113

114-
> 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.
114+
> warning **Warning** In the real-world applications you should avoid **magic strings**. Both `PHOTO_REPOSITORY` and `DATA_SOURCE` should be kept in the separated `constants.ts` file.
115115
116116
Now we can inject the `Repository<Photo>` to the `PhotoService` using the `@Inject()` decorator:
117117

0 commit comments

Comments
 (0)