[ ] publishedAt should be null and Date.now() when approved.
[ ] Applications should be able to be sorted by publish date
[ ] For old documents, we should perform a migration, setting createdAt with its creation date (can be gathered from ObjectId.getTimeStamp) and if it is approved, set the same timestamp to the publishedAt field.
publishedAt
should benull
andDate.now()
when approved.createdAt
with its creation date (can be gathered fromObjectId.getTimeStamp
) and if it is approved, set the same timestamp to thepublishedAt
field.