mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-19 22:09:37 +00:00
fix: use future publish_time for shared state test
PUBLISHED_RECORD used a fixed past date that was before Date.now(), causing lastModified > publishedAt and dialog showing 'stale' instead of 'shared'. Use Date.now() + 60s to ensure publishedAt > lastModified.
This commit is contained in:
@@ -16,7 +16,7 @@ const PUBLISHED_RECORD: PublishRecord = {
|
||||
workflow_id: 'wf-1',
|
||||
share_id: 'share-abc',
|
||||
listed: false,
|
||||
publish_time: '2026-01-15T00:00:00Z'
|
||||
publish_time: new Date(Date.now() + 60_000).toISOString()
|
||||
}
|
||||
|
||||
const PRIVATE_ASSET: AssetInfo = {
|
||||
|
||||
Reference in New Issue
Block a user