Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions components/server/src/workspace/workspace-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,13 +568,10 @@ export class WorkspaceService {
daysToLive = daysToLive * 2;
}
deletionEligibilityTime.setDate(deletionEligibilityTime.getDate() + daysToLive);
if (
workspace.deletionEligibilityTime &&
workspace.deletionEligibilityTime > deletionEligibilityTime.toISOString()
) {
if (new Date() > deletionEligibilityTime) {
log.warn(
{ userId, workspaceId, instanceId: instance?.id },
"[updateDeletionEligibilityTime] Prevented moving deletion eligibility time backwards",
"[updateDeletionEligibilityTime] Prevented moving deletion eligibility time to the past",
{
hasGitChanges,
timestamps: new TrustedValue({
Expand Down
Loading