Env.getOrFail() is deprecated
DealerUp opened this issue · 1 comments
DealerUp commented
On generate migrations
$ node ace mongodb:make:migration orders
(node:51980) Env.getOrFail() is deprecated. Use Env validations instead: DeprecationWarning
(node:51980) Env.getOrFail() is deprecated. Use Env validations instead: DeprecationWarning
CREATE: mongodb/migrations/1611147864077_orders.ts
targos commented
This warning comes from the config/mongodb.ts
file, so you'll have to fix it on your side. The template is now fixed in this repo.