fix deletiontime from event
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nathan Coad
2026-01-22 15:13:40 +11:00
parent b0592a2539
commit 68ee2838e4
2 changed files with 12 additions and 6 deletions

View File

@@ -1501,7 +1501,7 @@ SET
END,
"DeletionTime" = CASE
WHEN t_last_after IS NOT NULL
AND (dst."DeletionTime" IS NULL OR dst."DeletionTime" = 0 OR t_last_after < dst."DeletionTime")
AND (dst."DeletionTime" IS NULL OR dst."DeletionTime" = 0)
THEN t_last_after
ELSE dst."DeletionTime"
END
@@ -1585,7 +1585,7 @@ SET
(%[2]s."Name" IS NOT NULL AND t."Name" IS NOT NULL AND %[2]s."Name" = t."Name")
)
AND t.first_after IS NOT NULL
AND ("DeletionTime" IS NULL OR "DeletionTime" = 0 OR t.first_after < "DeletionTime")
AND ("DeletionTime" IS NULL OR "DeletionTime" = 0)
LIMIT 1
),
"DeletionTime"