upcoming tournament page, minor changes
This commit is contained in:
@@ -26,6 +26,7 @@ export function createPlayersService(pb: PocketBase) {
|
||||
async getPlayerByAuthId(authId: string): Promise<Player | null> {
|
||||
const result = await pb.collection("players").getList<Player>(1, 1, {
|
||||
filter: `auth_id = "${authId}"`,
|
||||
expand: 'teams'
|
||||
});
|
||||
return result.items[0] ? transformPlayer(result.items[0]) : null;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user