Update: all queries involving image now use ImageQueryValidationSchema

This commit is contained in:
Aaron William Po
2023-11-11 20:30:07 -05:00
parent 3ea9f67f16
commit d48d9a8886
21 changed files with 180 additions and 49 deletions

View File

@@ -37,7 +37,16 @@ const getBeerRecommendations = async ({
style: { select: { name: true, id: true, description: true } },
brewery: { select: { name: true, id: true } },
postedBy: { select: { id: true, username: true } },
beerImages: { select: { path: true, caption: true, id: true, alt: true } },
beerImages: {
select: {
alt: true,
path: true,
caption: true,
id: true,
createdAt: true,
updatedAt: true,
},
},
},
take,
skip,