If unlisted during creation, fill in creator id

This commit is contained in:
Ian Philips 2022-10-10 10:48:01 -06:00
parent 66071e16fa
commit a4699b79ed

View File

@ -63,6 +63,7 @@ export function getNewContract(
tags: [], tags: [],
lowercaseTags: [], lowercaseTags: [],
visibility, visibility,
unlistedById: visibility === 'unlisted' ? creator.id : undefined,
isResolved: false, isResolved: false,
createdTime: Date.now(), createdTime: Date.now(),
closeTime, closeTime,