Skip to content

Commit 0435e7e

Browse files
committed
fix: reset createdAt on re-link so linkedAt reflects latest link time
The onConflictDoUpdate block was missing createdAt: now, causing listForUser/getForUser to expose a stale linkedAt timestamp (mapped from createdAt) when an environment is re-linked after revoke.
1 parent e0bace7 commit 0435e7e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

infra/relay/src/environments/EnvironmentLinks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ const make = Effect.gen(function* () {
204204
managedTunnelsEnabled: request.managedTunnelsEnabled,
205205
createdByDeviceId: request.deviceId ?? null,
206206
revokedAt: null,
207+
createdAt: now,
207208
updatedAt: now,
208209
},
209210
})

0 commit comments

Comments
 (0)