fix: Change UpdatedAt data type to allow nullable values
This commit is contained in:
@@ -173,6 +173,7 @@ func getAllTasks() ([]models.Task, error) {
|
||||
SELECT id, text, completed, created_at, updated_at
|
||||
FROM tasks
|
||||
ORDER BY created_at DESC
|
||||
LIMIT 1000
|
||||
`
|
||||
|
||||
rows, err := pool.Query(ctx, sql)
|
||||
|
||||
Reference in New Issue
Block a user