stats table
This commit is contained in:
@@ -70,5 +70,12 @@ export function createPlayersService(pb: PocketBase) {
|
||||
});
|
||||
return result;
|
||||
},
|
||||
|
||||
async getAllPlayerStats(): Promise<PlayerStats[]> {
|
||||
const result = await pb.collection("player_stats").getFullList<PlayerStats>({
|
||||
sort: "-win_percentage,-total_cups_made",
|
||||
});
|
||||
return result;
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user