We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[interactive-soap-notes] [2024-05-16 06:38:40] Error in /api/issue for updating issue objects CastError: Cast to date failed for value "Thu, May 16, 2024 at 1:38 AM" (type string) at path "lastUpdated" [interactive-soap-notes] [2024-05-16 06:38:40] at SchemaDate.cast (/workspace/node_modules/mongoose/lib/schema/date.js:376:11) [interactive-soap-notes] [2024-05-16 06:38:40] at SchemaType.applySetters (/workspace/node_modules/mongoose/lib/schemaType.js:1236:12) [interactive-soap-notes] [2024-05-16 06:38:40] at SchemaDate.castForQuery (/workspace/node_modules/mongoose/lib/schema/date.js:411:19) [interactive-soap-notes] [2024-05-16 06:38:40] at castUpdateVal (/workspace/node_modules/mongoose/lib/helpers/query/castUpdate.js:573:19) [interactive-soap-notes] [2024-05-16 06:38:40] at walkUpdatePath (/workspace/node_modules/mongoose/lib/helpers/query/castUpdate.js:378:24) [interactive-soap-notes] [2024-05-16 06:38:40] at castUpdate (/workspace/node_modules/mongoose/lib/helpers/query/castUpdate.js:111:7) [interactive-soap-notes] [2024-05-16 06:38:40] at model.Query._castUpdate (/workspace/node_modules/mongoose/lib/query.js:4587:10) [interactive-soap-notes] [2024-05-16 06:38:40] at model.Query._findOneAndUpdate (/workspace/node_modules/mongoose/lib/query.js:3298:23) [interactive-soap-notes] [2024-05-16 06:38:40] at model.Query.exec (/workspace/node_modules/mongoose/lib/query.js:4330:80) [interactive-soap-notes] [2024-05-16 06:38:40] at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { [interactive-soap-notes] [2024-05-16 06:38:40] stringValue: '"Thu, May 16, 2024 at 1:38 AM"', [interactive-soap-notes] [2024-05-16 06:38:40] messageFormat: undefined, [interactive-soap-notes] [2024-05-16 06:38:40] kind: 'date', [interactive-soap-notes] [2024-05-16 06:38:40] value: 'Thu, May 16, 2024 at 1:38 AM', [interactive-soap-notes] [2024-05-16 06:38:40] path: 'lastUpdated', [interactive-soap-notes] [2024-05-16 06:38:40] reason: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: [interactive-soap-notes] [2024-05-16 06:38:40] [interactive-soap-notes] [2024-05-16 06:38:40] assert.ok(false) [interactive-soap-notes] [2024-05-16 06:38:40] [interactive-soap-notes] [2024-05-16 06:38:40] at castDate (/workspace/node_modules/mongoose/lib/cast/date.js:40:10) [interactive-soap-notes] [2024-05-16 06:38:40] at SchemaDate.cast (/workspace/node_modules/mongoose/lib/schema/date.js:374:12) [interactive-soap-notes] [2024-05-16 06:38:40] at SchemaType.applySetters (/workspace/node_modules/mongoose/lib/schemaType.js:1236:12) [interactive-soap-notes] [2024-05-16 06:38:40] at SchemaDate.castForQuery (/workspace/node_modules/mongoose/lib/schema/date.js:411:19) [interactive-soap-notes] [2024-05-16 06:38:40] at castUpdateVal (/workspace/node_modules/mongoose/lib/helpers/query/castUpdate.js:573:19) [interactive-soap-notes] [2024-05-16 06:38:40] at walkUpdatePath (/workspace/node_modules/mongoose/lib/helpers/query/castUpdate.js:378:24) [interactive-soap-notes] [2024-05-16 06:38:40] at castUpdate (/workspace/node_modules/mongoose/lib/helpers/query/castUpdate.js:111:7) [interactive-soap-notes] [2024-05-16 06:38:40] at model.Query._castUpdate (/workspace/node_modules/mongoose/lib/query.js:4587:10) [interactive-soap-notes] [2024-05-16 06:38:40] at model.Query._findOneAndUpdate (/workspace/node_modules/mongoose/lib/query.js:3298:23) [interactive-soap-notes] [2024-05-16 06:38:40] at model.Query.exec (/workspace/node_modules/mongoose/lib/query.js:4330:80) { [interactive-soap-notes] [2024-05-16 06:38:40] generatedMessage: true, [interactive-soap-notes] [2024-05-16 06:38:40] code: 'ERR_ASSERTION', [interactive-soap-notes] [2024-05-16 06:38:40] actual: false, [interactive-soap-notes] [2024-05-16 06:38:40] expected: true, [interactive-soap-notes] [2024-05-16 06:38:40] operator: '==' [interactive-soap-notes] [2024-05-16 06:38:40] }, [interactive-soap-notes] [2024-05-16 06:38:40] valueType: 'string' [interactive-soap-notes] [2024-05-16 06:38:40] }
The text was updated successfully, but these errors were encountered:
attempt to fix #69 #70 by using utc date strings everywhere, and only…
eca9444
… parsing into local for display
No branches or pull requests
The text was updated successfully, but these errors were encountered: