presque finis #6 vreste plus qu'a avoir un design propres

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
2020-04-29 15:16:17 +02:00
parent 535949a72e
commit 62444d7f7b
4 changed files with 11 additions and 7 deletions

View File

@ -42,7 +42,7 @@ export default async (req, res) => {
builder.pseudo = pseudo
}
if (location) {
builder.location = parseInt(location)
builder.coinId = parseInt(location)
}
res.end(JSON.stringify(await Photo.findAll(Object.keys(builder).length > 0 ? {where: builder} : undefined)))