Skip to content

Commit

Permalink
fix: get rid of sentry error and extra logging (#7050)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Onnikov <[email protected]>
  • Loading branch information
aonnikov authored Oct 28, 2024
1 parent 84ab130 commit a2f9eb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/controlled-documents/src/migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion server-plugins/notification-resources/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {})
}

Expand Down

0 comments on commit a2f9eb4

Please sign in to comment.