fix: get rid of sentry error and extra logging (#7050)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2024-10-28 12:57:35 +07:00 committed by GitHub
parent 84ab130470
commit a2f9eb4990
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -294,7 +294,7 @@ async function migrateDocSections (client: MigrationClient): Promise<void> {
try {
const ydoc = await loadCollaborativeDoc(ctx, storage, client.workspaceId, document.content)
if (ydoc === undefined) {
ctx.error('collaborative document content not found', { document: document.title })
// no content, ignore
continue
}

View File

@ -336,7 +336,7 @@ export function getTextPresenter (_class: Ref<Class<Doc>>, hierarchy: Hierarchy)
}
async function getSenderName (control: TriggerControl, sender: SenderInfo): Promise<string> {
if (sender._id === core.account.System) {
if (sender._id === core.account.System || sender._id === core.account.ConfigUser) {
return await translate(core.string.System, {})
}