Rename "user" column in beerPostLikes, add ERD gen

This commit is contained in:
Aaron William Po
2023-02-13 17:05:00 -05:00
parent 249bfdaf5a
commit ea516e91b5
11 changed files with 2885 additions and 19 deletions

View File

@@ -10,7 +10,7 @@ const useUser = () => {
isLoading,
} = useSWR('/api/users/current', async (url) => {
if (!document.cookie.includes('token')) {
return null;
return undefined;
}
const response = await fetch(url);