Refactored fetching to use react-query.
This commit is contained in:
@@ -16,6 +16,9 @@ export async function getTeamUsers(teamId: string): Promise<TeamUser[]> {
|
||||
where: {
|
||||
teamId,
|
||||
},
|
||||
include: {
|
||||
user: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ async function relationalQuery(
|
||||
? `and ${getEventDataFilterQuery('event_data', filters)}`
|
||||
: ''
|
||||
}`,
|
||||
params,
|
||||
params as any,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user