From cf507037a8f09d844670728b62faf46b6424d87d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B2=D0=BE=D0=B2=20=D0=90=D1=80=D1=82?= =?UTF-8?q?=D0=B5=D0=BC?= Date: Mon, 22 Jun 2026 22:03:32 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20createdAt=20?= =?UTF-8?q?=D0=B8=D0=B7=20sql=20=D0=BF=D0=BE=20insert=20current.=20=D0=9F?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=BB=D0=BE=D0=B6=D0=B8=D0=BB=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BD=D0=B0?= =?UTF-8?q?=20default=20current=5Ftimestamp.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ingest/ingest.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ingest/ingest.service.ts b/src/ingest/ingest.service.ts index c93e337..3c1d3f6 100644 --- a/src/ingest/ingest.service.ts +++ b/src/ingest/ingest.service.ts @@ -22,8 +22,8 @@ export class IngestService { await this.db.query( ` - INSERT INTO current (edge, tag, value, "createdAt", "updatedAt") - VALUES ($1, $2, $3, NOW(), NOW()) + INSERT INTO current (edge, tag, value, "updatedAt") + VALUES ($1, $2, $3, NOW()) ON CONFLICT (edge, tag) DO UPDATE SET value = $3,