From b5f0619c89f4412fe5167855ef2737333441888b Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Mon, 8 Jul 2024 17:43:05 +0100 Subject: [PATCH] Fix attachments test. --- packages/server/src/sdk/tests/attachments.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,