fix: use millisecond timestamp in save mock for correct stale comparison

resolveDialogStateFromStatus compares workflow.lastModified (stored
as-is from the mock) with publishedAt.getTime() (milliseconds).
Date.now() / 1000 returned seconds, making lastModified always less
than publishedAtMs, so the dialog never showed 'stale' state.
This commit is contained in:
bymyself
2026-03-30 18:47:19 -07:00
parent fe4d77d024
commit d9f6c9dfd6

View File

@@ -132,7 +132,7 @@ async function saveAndWait(
body: JSON.stringify({
path: `workflows/${filename}`,
size: 1024,
modified: Date.now() / 1000
modified: Date.now()
})
})
} else {