mikro-orm / nestjs-realworld-example-app

Example real world backend API built with NestJS + MikroORM
https://realworld.io/
MIT License
280 stars 72 forks source link

Replace .remove() by .nativeDelete() for prevent "You need to pass en… #51

Closed drackp2m closed 1 year ago

drackp2m commented 2 years ago

Remove error message "Error: You need to pass entity instance or reference to 'em.remove()'. To remove entities by condition, use 'em.nativeDelete()'." when try to call [DELETE] /api/users/

B4nan commented 1 year ago

Fixed via 827cee98b3b6078d26860b5251b3587e29de6484