Skip to content

Commit 4e4356e

Browse files
Merge pull request #2520 from connected-tcaceres/patch-2
update name of magic string used
2 parents c2d66ee + 013d5e6 commit 4e4356e

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)