webdevcody / wdc-saas-starter-kit

https://wdcstarterkit.com/
MIT License
867 stars 221 forks source link

invites.tsx | type error: Property tokenExpiresAt #26

Closed johntday closed 2 weeks ago

johntday commented 2 weeks ago

CleanShot 2024-08-26 at 19 55 48

[builder 5/5] RUN npm run build:

75.73 ./src/use-cases/invites.tsx:37:14

75.73 Type error: Property 'tokenExpiresAt' does not exist on type '{ id: number; token: string; groupId: number; }'.

75.73

75.73 35 | }

75.73 36 |

75.73 > 37 | if (invite.tokenExpiresAt! < new Date()) {

75.73 | ^

75.73 38 | throw new PublicError("This invite has expired");

75.73 39 | }