Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Potential data unsynchronization issues #845

Closed
Tracked by #747
wibus-wee opened this issue Sep 1, 2023 · 0 comments · Fixed by #850
Closed
Tracked by #747

[Bug] Potential data unsynchronization issues #845

wibus-wee opened this issue Sep 1, 2023 · 0 comments · Fixed by #850
Assignees
Labels
bug Something isn't working

Comments

@wibus-wee
Copy link
Member

wibus-wee commented Sep 1, 2023

import { PageServiceModule } from '~/apps/page-service/src/page-service.module';

imports: [PageServiceModule],

Here, Aggregate Service from PageService is used directly. In a production environment, if two services are linked to different databases, Aggregate Service will never get the data.

constructor(
@Inject(forwardRef(() => PostService))
private readonly postService: PostService,
@Inject(forwardRef(() => PageService))
private readonly pageService: PageService,
@Inject(forwardRef(() => CategoryService))
private readonly categoryService: CategoryService,
private readonly configService: ConfigService,
private readonly redis: CacheService,
) {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant