chore: More typescript FIXME's removed
This commit is contained in:
@@ -33,7 +33,7 @@ export default class NotificationsProcessor {
|
||||
async documentUpdated(event: DocumentEvent | RevisionEvent) {
|
||||
// never send notifications when batch importing documents
|
||||
// @ts-expect-error ts-migrate(2339) FIXME: Property 'data' does not exist on type 'DocumentEv... Remove this comment to see the full error message
|
||||
if (event.data && event.data.source === "import") return;
|
||||
if (event.data?.source === "import") return;
|
||||
const [document, team] = await Promise.all([
|
||||
Document.findByPk(event.documentId),
|
||||
Team.findByPk(event.teamId),
|
||||
|
||||
Reference in New Issue
Block a user