mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
Format and style
Format SQL query in clean database, run npm run format
This commit is contained in:
@@ -27,7 +27,7 @@ const useCheckIfUserLikesBreweryPost = (breweryPostId: string) => {
|
||||
|
||||
const response = await fetch(`/api/breweries/${breweryPostId}/like/is-liked`);
|
||||
const json = await response.json();
|
||||
|
||||
|
||||
const parsed = APIResponseValidationSchema.safeParse(json);
|
||||
if (!parsed.success) {
|
||||
throw new Error('Invalid API response.');
|
||||
|
||||
Reference in New Issue
Block a user