mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-16 04:44:29 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user