Dropping SCIM logs from writethrough cache queue.

This commit is contained in:
mike12345567 2025-03-26 15:41:39 +00:00
parent e572c6d553
commit 9ecef8269d
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
import { AnyDocument, Database, Document } from "@budibase/types"
import { AnyDocument, Database, Document, DocumentType } from "@budibase/types"
import { JobQueue, Queue, createQueue } from "../queue"
import * as dbUtils from "../db"
@ -57,6 +57,10 @@ export class DocWritethroughProcessor {
docId: string
data: Record<string, any>
}) {
// HACK - for now drop SCIM events
if (docId.startsWith(DocumentType.SCIM_LOG)) {
return
}
const db = dbUtils.getDB(dbName)
let doc: AnyDocument | undefined
try {