1
0
Fork 0
mirror of synced 2024-10-01 09:38:55 +13:00

Further PR comments.

This commit is contained in:
mike12345567 2023-11-17 16:37:00 +00:00
parent 57fa9baef8
commit 258ea803bc
2 changed files with 2 additions and 3 deletions

View file

@ -11,7 +11,7 @@ let userClient: Client,
inviteClient: Client,
passwordResetClient: Client
async function init() {
export async function init() {
userClient = await new Client(utils.Databases.USER_CACHE).init()
sessionClient = await new Client(utils.Databases.SESSIONS).init()
appClient = await new Client(utils.Databases.APP_METADATA).init()

View file

@ -88,8 +88,7 @@ const shutdown = () => {
export default server.listen(parseInt(env.PORT || "4002"), async () => {
console.log(`Worker running on ${JSON.stringify(server.address())}`)
await initPro()
await redis.clients.getInviteClient()
await redis.clients.getPasswordResetClient()
await redis.clients.init()
// configure events to use the pro audit log write
// can't integrate directly into backend-core due to cyclic issues
await events.processors.init(proSdk.auditLogs.write)