mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-28 05:56:02 +03:00
UBERF-8224: Fix undefined rejection exception (#6677)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
1e0edd4eb5
commit
db10746bec
@ -698,7 +698,6 @@ export class PlatformWorker {
|
|||||||
errors++
|
errors++
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
|
||||||
if (workspaceInfo?.workspace === undefined) {
|
if (workspaceInfo?.workspace === undefined) {
|
||||||
this.ctx.error('No workspace exists for workspaceId', { workspace })
|
this.ctx.error('No workspace exists for workspaceId', { workspace })
|
||||||
errors++
|
errors++
|
||||||
@ -708,6 +707,7 @@ export class PlatformWorker {
|
|||||||
this.ctx.error('Workspace is disabled workspaceId', { workspace })
|
this.ctx.error('Workspace is disabled workspaceId', { workspace })
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
const branding = Object.values(this.brandingMap).find((b) => b.key === workspaceInfo?.branding) ?? null
|
const branding = Object.values(this.brandingMap).find((b) => b.key === workspaceInfo?.branding) ?? null
|
||||||
const workerCtx = this.ctx.newChild('worker', { workspace: workspaceInfo.workspace }, {})
|
const workerCtx = this.ctx.newChild('worker', { workspace: workspaceInfo.workspace }, {})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user