Skip to content

Commit e072cfd

Browse files
committed
feat: fix ts
1 parent 56088c0 commit e072cfd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/server/src/__tests__/memo.public-share-security.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('PublicMemoDto privacy', () => {
1414
};
1515

1616
// This line would fail TypeScript compilation if 'email' were in the type
17-
const hasEmail = (publicUser as Record<string, unknown>).email;
17+
const hasEmail = (publicUser as unknown as Record<string, unknown>).email;
1818

1919
expect(hasEmail).toBeUndefined();
2020
expect(publicUser).not.toHaveProperty('email');

0 commit comments

Comments
 (0)