Merge pull request #15821 from Budibase/fix/drop-scim-logs

Dropping SCIM logs from writethrough cache queue.
This commit is contained in:
Michael Drury 2025-03-26 15:42:57 +00:00 committed by GitHub
commit 0a57449746
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 {