fix: task api and other small issues

This commit is contained in:
DecDuck
2025-04-20 23:34:22 +10:00
parent 7f8fac4b24
commit 56f5028f69
4 changed files with 19 additions and 9 deletions
+3 -1
View File
@@ -63,7 +63,9 @@ export class ClientHandler {
}
async fetchClientMetadataByToken(token: string) {
return Object.entries(this.temporaryClientTable)
return this.temporaryClientTable
.entries()
.toArray()
.map((e) => Object.assign(e[1], { id: e[0] }))
.find((e) => e.authToken === token);
}