Add new follow API endpoint

This commit is contained in:
Jesse Wierzbinski 2023-09-21 17:18:05 -10:00
parent 36b682d662
commit a9688b8178
7 changed files with 275 additions and 30 deletions

View file

@ -7,7 +7,11 @@ export const getUserByToken = async (access_token: string | null) => {
where: {
access_token,
},
relations: ["user"],
relations: {
user: {
relationships: true,
},
},
});
if (!token) return null;