You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> 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.
111
111
112
112
Now we can inject the `Repository<Photo>` to the `PhotoService` using the `@Inject()` decorator:
113
113
@@ -151,4 +151,4 @@ import { PhotoService } from './photo.service';
151
151
exportclassPhotoModule {}
152
152
```
153
153
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