-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX][ENTERPRISE] Omnichannel real time data on micro services (#26703)
Co-authored-by: Diego Sampaio <chinello@gmail.com>
- Loading branch information
1 parent
6735565
commit 2bb188a
Showing
11 changed files
with
61 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import type { Document } from 'mongodb'; | ||
|
||
import '../../startup/broker'; | ||
|
||
import { api } from '../../../../server/sdk/api'; | ||
import { Authorization } from '../../../../server/services/authorization/service'; | ||
import { getConnection } from '../mongo'; | ||
import { Collections, getCollection, getConnection } from '../mongo'; | ||
import { registerServiceModels } from '../../lib/registerServiceModels'; | ||
|
||
getConnection().then((db) => { | ||
registerServiceModels(db); | ||
getConnection().then(async (db) => { | ||
const trash = await getCollection<Document>(Collections.Trash); | ||
|
||
registerServiceModels(db, trash); | ||
|
||
api.registerService(new Authorization(db)); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,6 +68,6 @@ | |
"typescript": "~4.5.5" | ||
}, | ||
"volta": { | ||
"extends": "../../package.json" | ||
"extends": "../../../package.json" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import type { Document } from 'mongodb'; | ||
|
||
import { NotificationsModule } from '../../../../apps/meteor/server/modules/notifications/notifications.module'; | ||
import { Stream } from './Streamer'; | ||
import { getConnection } from '../../../../apps/meteor/ee/server/services/mongo'; | ||
import { Collections, getCollection, getConnection } from '../../../../apps/meteor/ee/server/services/mongo'; | ||
import { registerServiceModels } from '../../../../apps/meteor/ee/server/lib/registerServiceModels'; | ||
|
||
export const notifications = new NotificationsModule(Stream); | ||
|
||
getConnection().then((db) => { | ||
registerServiceModels(db); | ||
getConnection().then(async (db) => { | ||
const trash = await getCollection<Document>(Collections.Trash); | ||
|
||
registerServiceModels(db, trash); | ||
|
||
notifications.configure(); | ||
}); |