QFIX: DocGuest set status cause tx and error record (#8279) (#8282)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2025-03-19 22:29:55 +07:00 committed by GitHub
parent e8a5b46ac5
commit 66f31db884
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,6 +15,7 @@
import { Analytics } from '@hcengineering/analytics'
import core, {
AccountRole,
cutObjectArray,
generateId,
isArchivingMode,
@ -1242,9 +1243,11 @@ export class TSessionManager implements SessionManager {
// We do not need to wait for set-status, just return session to client
const _workspace = service.workspace
void ctx
.with('set-status', {}, (ctx) => this.trySetStatus(ctx, pipeline, service, true, _workspace.workspaceUuid))
.catch(() => {})
if (helloResponse.account.role !== AccountRole.DocGuest) {
void ctx
.with('set-status', {}, (ctx) => this.trySetStatus(ctx, pipeline, service, true, _workspace.workspaceUuid))
.catch(() => {})
}
} catch (err: any) {
ctx.error('error', { err })
}