ngareleo / donald

Mapesa platform
https://donald-rstm.vercel.app
1 stars 0 forks source link

Fix issue on `returning` in drizzle. #16

Open ngareleo opened 3 months ago

ngareleo commented 3 months ago

TS raises an error expected 0 arguments found 1 because it doesn't know if the drizzle instance is NeonDrizzle or PostgresDrizzle ahead of time even if they have the same underlying API. My guess is it arises because drizzle partially supports returning() so there's a side effect. Or I'm doing the wrong thing. It works for now but I must to look into this error soon.