Bugfix: Removed usages of publisedAt and replaced with createdAt which are the name in mongo