Added better types

This commit is contained in:
didier amyot committed 2023-11-20 07:59:20 -05:00
1 parent 22489242c2
commit b52f76d3bc
2 files changed
+60 -41

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@ function getUserIndex(userId: string, ballotId: string, questionId: string){
questionId]
}
function persistTeams(userId: any, ballots: Team[]) {
async function persistTeams(userId: any, ballots: Team[]): Promise<void> {
const kv = await Deno.openKv();
for(const ballot of ballots){
for(const question of Object.keys(ballot.scores)){