From 3003926c399be163fd09b3e4788699ac8f850f61 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Tue, 5 Apr 2022 15:47:59 +0100 Subject: [PATCH] fix: column reference inserted_at is ambiguous --- packages/cron/src/jobs/pins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cron/src/jobs/pins.js b/packages/cron/src/jobs/pins.js index e1272fcc74..5d910a6ab4 100644 --- a/packages/cron/src/jobs/pins.js +++ b/packages/cron/src/jobs/pins.js @@ -73,7 +73,7 @@ SELECT p.id, p.service, p.status, u.source_cid, p.inserted_at, p.updated_at ON p.content_cid = u.content_cid WHERE p.service IN (${CLUSTER_LIST}) AND p.status = 'PinError' - AND inserted_at > $1 + AND p.inserted_at > $1 OFFSET $2 LIMIT $3`