Skip to content

Commit 6ea02bc

Browse files
committed
test(rest): type the direct sys_file read in the projection-without-id door test
Claude-Session: https://claude.ai/code/session_01FEkQ5nso8iiU7cfQSEAkX5 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 845325d commit 6ea02bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/rest/src/data-file-field-projection-without-id.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ describe('[#26672] a file field reads the same with or without `id` in the proje
175175
const as = (user: string) => { caller = user; };
176176

177177
it('the refusal it starts from: the reader may not read sys_file directly', async () => {
178-
const direct = await engine.find('sys_file', { context: { userId: READER } } as any).then(() => null, (e: any) => e);
178+
const direct = await engine.find('sys_file', { context: { userId: READER } }).then(() => null, (e: any) => e);
179179
expect({ code: direct?.code, status: direct?.statusCode ?? direct?.status }).toEqual({ code: 'PERMISSION_DENIED', status: 403 });
180180
});
181181

0 commit comments

Comments
 (0)