mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-23 23:18:18 +02:00
Merge pull request #324 from R0m1k3/1.1
Fix error when creating new tasks with invalid date formats
This commit is contained in:
2 files changed
+200
No files matched your search
+200
@@ -0,0 +1,200 @@
|
|||||||
|
|
||||||
|
title: 'test',
|
||||||
|
|
||||||
|
description: 'test',
|
||||||
|
|
||||||
|
priority: 'medium',
|
||||||
|
|
||||||
|
status: 'pending',
|
||||||
|
|
||||||
|
assignedTo: 'Non assigné',
|
||||||
|
|
||||||
|
startDate: '2025-09-02',
|
||||||
|
|
||||||
|
dueDate: '2025-09-03',
|
||||||
|
|
||||||
|
groupId: 2,
|
||||||
|
|
||||||
|
createdBy: 'admin_local'
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
dueDate: '2025-09-03',
|
||||||
|
|
||||||
|
dueDateType: 'string',
|
||||||
|
|
||||||
|
dueDateValue: '2025-09-03'
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
💾 DatabaseStorage.createTask - Input: {
|
||||||
|
|
||||||
|
taskData: {
|
||||||
|
|
||||||
|
title: 'test',
|
||||||
|
|
||||||
|
description: 'test',
|
||||||
|
|
||||||
|
priority: 'medium',
|
||||||
|
|
||||||
|
status: 'pending',
|
||||||
|
|
||||||
|
assignedTo: 'Non assigné',
|
||||||
|
|
||||||
|
startDate: '2025-09-02',
|
||||||
|
|
||||||
|
dueDate: '2025-09-03',
|
||||||
|
|
||||||
|
groupId: 2,
|
||||||
|
|
||||||
|
createdBy: 'admin_local'
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
dueDate: '2025-09-03',
|
||||||
|
|
||||||
|
dueDateType: 'string',
|
||||||
|
|
||||||
|
dueDateISO: '2025-09-03'
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Error creating task: TypeError: value.toISOString is not a function
|
||||||
|
|
||||||
|
at PgTimestamp.mapToDriverValue (file:///app/node_modules/drizzle-orm/pg-core/columns/timestamp.js:34:18)
|
||||||
|
|
||||||
|
at file:///app/node_modules/drizzle-orm/sql/sql.js:131:73
|
||||||
|
|
||||||
|
at Array.map (<anonymous>)
|
||||||
|
|
||||||
|
at SQL.buildQueryFromSourceParams (file:///app/node_modules/drizzle-orm/sql/sql.js:73:32)
|
||||||
|
|
||||||
|
at file:///app/node_modules/drizzle-orm/sql/sql.js:92:21
|
||||||
|
|
||||||
|
at Array.map (<anonymous>)
|
||||||
|
|
||||||
|
at SQL.buildQueryFromSourceParams (file:///app/node_modules/drizzle-orm/sql/sql.js:73:32)
|
||||||
|
|
||||||
|
at file:///app/node_modules/drizzle-orm/sql/sql.js:95:21
|
||||||
|
|
||||||
|
at Array.map (<anonymous>)
|
||||||
|
|
||||||
|
at SQL.buildQueryFromSourceParams (file:///app/node_modules/drizzle-orm/sql/sql.js:73:32)
|
||||||
|
|
||||||
|
POST /api/tasks 500 in 7ms
|
||||||
|
|
||||||
|
📝 POST /api/tasks - Received data: {
|
||||||
|
|
||||||
|
originalBody: {
|
||||||
|
|
||||||
|
title: 'test',
|
||||||
|
|
||||||
|
description: 'test',
|
||||||
|
|
||||||
|
priority: 'medium',
|
||||||
|
|
||||||
|
status: 'pending',
|
||||||
|
|
||||||
|
assignedTo: 'Non assigné',
|
||||||
|
|
||||||
|
startDate: '2025-09-03',
|
||||||
|
|
||||||
|
dueDate: '2025-09-03',
|
||||||
|
|
||||||
|
groupId: 2,
|
||||||
|
|
||||||
|
createdBy: 'admin'
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
processedData: {
|
||||||
|
|
||||||
|
title: 'test',
|
||||||
|
|
||||||
|
description: 'test',
|
||||||
|
|
||||||
|
priority: 'medium',
|
||||||
|
|
||||||
|
status: 'pending',
|
||||||
|
|
||||||
|
assignedTo: 'Non assigné',
|
||||||
|
|
||||||
|
startDate: '2025-09-03',
|
||||||
|
|
||||||
|
dueDate: '2025-09-03',
|
||||||
|
|
||||||
|
groupId: 2,
|
||||||
|
|
||||||
|
createdBy: 'admin_local'
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
dueDate: '2025-09-03',
|
||||||
|
|
||||||
|
dueDateType: 'string',
|
||||||
|
|
||||||
|
dueDateValue: '2025-09-03'
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
💾 DatabaseStorage.createTask - Input: {
|
||||||
|
|
||||||
|
taskData: {
|
||||||
|
|
||||||
|
title: 'test',
|
||||||
|
|
||||||
|
description: 'test',
|
||||||
|
|
||||||
|
priority: 'medium',
|
||||||
|
|
||||||
|
status: 'pending',
|
||||||
|
|
||||||
|
assignedTo: 'Non assigné',
|
||||||
|
|
||||||
|
startDate: '2025-09-03',
|
||||||
|
|
||||||
|
dueDate: '2025-09-03',
|
||||||
|
|
||||||
|
groupId: 2,
|
||||||
|
|
||||||
|
createdBy: 'admin_local'
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
dueDate: '2025-09-03',
|
||||||
|
|
||||||
|
dueDateType: 'string',
|
||||||
|
|
||||||
|
dueDateISO: '2025-09-03'
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Error creating task: TypeError: value.toISOString is not a function
|
||||||
|
|
||||||
|
at PgTimestamp.mapToDriverValue (file:///app/node_modules/drizzle-orm/pg-core/columns/timestamp.js:34:18)
|
||||||
|
|
||||||
|
at file:///app/node_modules/drizzle-orm/sql/sql.js:131:73
|
||||||
|
|
||||||
|
at Array.map (<anonymous>)
|
||||||
|
|
||||||
|
at SQL.buildQueryFromSourceParams (file:///app/node_modules/drizzle-orm/sql/sql.js:73:32)
|
||||||
|
|
||||||
|
at file:///app/node_modules/drizzle-orm/sql/sql.js:92:21
|
||||||
|
|
||||||
|
at Array.map (<anonymous>)
|
||||||
|
|
||||||
|
at SQL.buildQueryFromSourceParams (file:///app/node_modules/drizzle-orm/sql/sql.js:73:32)
|
||||||
|
|
||||||
|
at file:///app/node_modules/drizzle-orm/sql/sql.js:95:21
|
||||||
|
|
||||||
|
at Array.map (<anonymous>)
|
||||||
|
|
||||||
|
at SQL.buildQueryFromSourceParams (file:///app/node_modules/drizzle-orm/sql/sql.js:73:32)
|
||||||
|
|
||||||
|
POST /api/tasks 500 in 6ms
|
||||||
|
|
||||||
|
HEAD /api/health 200 in 0ms
|
||||||
|
|
||||||
|
PUT /api/customer-orders/101 401 in 1ms
|
||||||
|
|
||||||
|
PUT /api/customer-orders/100 401 in 1ms
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 272 KiB |
Reference in new issue
Block a user