Skip to content

Commit a2f9eb4

Browse files
authored
fix: get rid of sentry error and extra logging (#7050)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
1 parent 84ab130 commit a2f9eb4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/controlled-documents/src/migration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ async function migrateDocSections (client: MigrationClient): Promise<void> {
294294
try {
295295
const ydoc = await loadCollaborativeDoc(ctx, storage, client.workspaceId, document.content)
296296
if (ydoc === undefined) {
297-
ctx.error('collaborative document content not found', { document: document.title })
297+
// no content, ignore
298298
continue
299299
}
300300

server-plugins/notification-resources/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ export function getTextPresenter (_class: Ref<Class<Doc>>, hierarchy: Hierarchy)
336336
}
337337

338338
async function getSenderName (control: TriggerControl, sender: SenderInfo): Promise<string> {
339-
if (sender._id === core.account.System) {
339+
if (sender._id === core.account.System || sender._id === core.account.ConfigUser) {
340340
return await translate(core.string.System, {})
341341
}
342342

0 commit comments

Comments
 (0)