release: v1.0.0

This is the official v1.0.0 release because we didn't track version numbers before. Included in the update are the following:
- feat: connect serverless functions to data proxy instead of directly to the database
- fix: reference avatar images in comments correctly
This commit is contained in:
Johns Beharry
2022-09-20 12:43:49 +02:00
committed by GitHub

View File

@@ -23,12 +23,19 @@ const getEventsExtraData = async (req, res) => {
select: {
id: true,
avatar: true,
avatar_rel: {
select: {
url: true,
}
},
name: true,
}
}
}
});
comments.map(c => c.user.avatar = c.user.avatar_rel?.url ?? c.user.avatar)
return res
.status(200)
.json(comments)