mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Address TypeError in Drizzle ORM's PgTimestamp mapping for task creation when dueDate is not a valid Date object. Replit-Commit-Author: Agent Replit-Commit-Session-Id: f2b9c241-9fdd-4abd-9041-720afc8b27d6 Replit-Commit-Checkpoint-Type: full_checkpoint
200 lines
3.5 KiB
Plaintext
200 lines
3.5 KiB
Plaintext
|
|
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 |