mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Add new follow API endpoint
This commit is contained in:
parent
36b682d662
commit
a9688b8178
7 changed files with 275 additions and 30 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue