Skip to content

Commit fa3f68b

Browse files
committed
fix(realtime): pass the route context in the document access integration check
1 parent 4af6de7 commit fa3f68b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/sim/lib/collab-doc/access.integration.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ check(
175175
...(secret ? { 'x-api-key': secret } : {}),
176176
},
177177
body: JSON.stringify({ fileId, userId: memberId }),
178-
})
178+
}),
179+
{ params: Promise.resolve({}) }
179180
)
180181
const secret = process.env.INTERNAL_API_SECRET
181182
expect((await request(undefined)).status).toBe(401)

0 commit comments

Comments
 (0)