diff --git a/packages/server/src/sdk/tests/attachments.spec.ts b/packages/server/src/sdk/tests/attachments.spec.ts index 12c808d3a5..5656a1b608 100644 --- a/packages/server/src/sdk/tests/attachments.spec.ts +++ b/packages/server/src/sdk/tests/attachments.spec.ts @@ -39,7 +39,9 @@ describe("should be able to re-write attachment URLs", () => { } const db = dbCore.getDB(config.getAppId()) - await sdk.backups.updateAttachmentColumns(db.name, db) + await config.doInContext(config.getAppId(), () => + sdk.backups.updateAttachmentColumns(db.name, db) + ) return { db,