meateam / seal

MIT License
4 stars 0 forks source link

Generic Repository - create() #83

Open tal2301 opened 5 years ago

tal2301 commented 5 years ago

Fix uncatchable error in repository.ts create()

yonatandt commented 5 years ago

I see no error there. If you enter a duplicate key you will receive an error : E11000 duplicate key error index. If you won't catch the error you will miss the error and it will go upstream.