You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node@ca84dc82191e:/app/apps/api/dist/src/scripts$ node create-local-user.js [email protected]
(node:78) [MONGODB DRIVER] Warning: useNewUrlParser is a deprecated option: useNewUrlParser has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version
(Use `node --trace-warnings ...` to show where the warning was created)
(node:78) [MONGODB DRIVER] Warning: useUnifiedTopology is a deprecated option: useUnifiedTopology has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version
{"level":30,"time":1722352284213,"pid":78,"hostname":"ca84dc82191e","msg":"Database connected"}
Error: User validation failed: subscriptionEndsAfter: Path `subscriptionEndsAfter` is required.
at ValidationError.inspect (/app/node_modules/.pnpm/[email protected]/node_modules/mongoose/lib/error/validation.js:50:26)
at formatValue (node:internal/util/inspect:805:19)
at inspect (node:internal/util/inspect:364:10)
at formatWithOptionsInternal (node:internal/util/inspect:2298:40)
at formatWithOptions (node:internal/util/inspect:2160:10)
at console.value (node:internal/console/constructor:351:14)
at console.warn (node:internal/console/constructor:384:61)
at /app/apps/api/dist/src/scripts/create-local-user.js:115:25
at step (/app/apps/api/dist/src/scripts/create-local-user.js:56:23)
at Object.throw (/app/apps/api/dist/src/scripts/create-local-user.js:37:53) {
errors: {
subscriptionEndsAfter: ValidatorError: Path `subscriptionEndsAfter` is required.
at validate (/app/node_modules/.pnpm/[email protected]/node_modules/mongoose/lib/schemaType.js:1365:13)
at SchemaType.doValidate (/app/node_modules/.pnpm/[email protected]/node_modules/mongoose/lib/schemaType.js:1349:7)
at /app/node_modules/.pnpm/[email protected]/node_modules/mongoose/lib/document.js:2972:18
at process.processTicksAndRejections (node:internal/process/task_queues:77:11) {
properties: [Object],
kind: 'required',
path: 'subscriptionEndsAfter',
value: undefined,
reason: undefined,
[Symbol(mongoose#validatorError)]: true
}
},
_message: 'User validation failed'
}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: