Skip to content

Commit adfec7f

Browse files
committed
fix: prevent cache key collision
1 parent cb7d00b commit adfec7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/browseros-agent/apps/server/src/lib/clients/klavis/klavis-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class KlavisClient {
4444
}
4545

4646
private buildStrataCacheKey(userId: string, servers: string[]): string {
47-
return `${userId}:${[...servers].sort().join(',')}`
47+
return JSON.stringify([userId, ...servers.sort()])
4848
}
4949

5050
private async request<T>(

0 commit comments

Comments
 (0)