pingvin-share
pingvin-share copied to clipboard
Compile errors on backend
👟 Reproduction steps
When I run npm run build
inside of the backend
folder, I get an error, and the build fails
👍 Expected behavior
It should build correctly without any errors
👎 Actual Behavior
src/reverseShare/reverseShare.service.ts:52:9 - error TS2353: Object literal may only specify known properties, and 'simplified' does not exist in type '(Without<ReverseShareCreateInput, ReverseShareUncheckedCreateInput> & ReverseShareUncheckedCreateInput) | (Without<...> & ReverseShareCreateInput)'.
52 simplified: data.simplified,
~~~~~~~~~~
node_modules/.prisma/client/index.d.ts:8724:5
8724 data: XOR<ReverseShareCreateInput, ReverseShareUncheckedCreateInput>
~~~~
The expected type comes from property 'data' which is declared here on type '{ select?: ReverseShareSelect<DefaultArgs>; include?: ReverseShareInclude<DefaultArgs>; data: (Without<ReverseShareCreateInput, ReverseShareUncheckedCreateInput> & ReverseShareUncheckedCreateInput) | (Without<...> & ReverseShareCreateInput); }'
src/share/guard/shareSecurity.guard.ts:68:27 - error TS2339: Property 'publicAccess' does not exist on type '{ id: string; createdAt: Date; token: string; shareExpiration: Date; maxShareSize: string; sendEmailNotification: boolean; remainingUses: number; creatorId: string; }'.
68 !share.reverseShare.publicAccess &&
~~~~~~~~~~~~
Found 2 error(s).
🌐 Browser
N/A