Skip to content

Commit

Permalink
Fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Jul 23, 2024
1 parent a23c05a commit 581fe6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kv-installation-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ export class KVInstallationStore<E extends SlackOAuthEnv> implements Installatio
const e = query.enterpriseId ? query.enterpriseId : "_";
const prefix = query.teamId ? `${clientId}/${e}:${query.teamId}` : `${clientId}/${e}:`;
var keys: string[] = [];
const first = await this.#storage.list({ prefix: prefix });
const first = await this.#storage.list({ prefix });
keys = keys.concat(first.keys.map((k) => k.name));
var cursor: string | undefined = first.cursor;
while (cursor) {
const response = await this.#storage.list({ prefix: prefix });
const response = await this.#storage.list({ prefix, cursor });
keys = keys.concat(response.keys.map((k) => k.name));
}
for (const key of keys) {
Expand Down

0 comments on commit 581fe6f

Please sign in to comment.