Убрал createdAt из sql по insert current. Переложил заполнение на default current_timestamp.
This commit is contained in:
@@ -22,8 +22,8 @@ export class IngestService {
|
|||||||
|
|
||||||
await this.db.query(
|
await this.db.query(
|
||||||
`
|
`
|
||||||
INSERT INTO current (edge, tag, value, "createdAt", "updatedAt")
|
INSERT INTO current (edge, tag, value, "updatedAt")
|
||||||
VALUES ($1, $2, $3, NOW(), NOW())
|
VALUES ($1, $2, $3, NOW())
|
||||||
ON CONFLICT (edge, tag)
|
ON CONFLICT (edge, tag)
|
||||||
DO UPDATE SET
|
DO UPDATE SET
|
||||||
value = $3,
|
value = $3,
|
||||||
|
|||||||
Reference in New Issue
Block a user