fix: task api and other small issues

This commit is contained in:
DecDuck
2025-04-20 23:34:22 +10:00
parent feedcfc5c4
commit 31ad8505b7
4 changed files with 19 additions and 9 deletions

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);
}