Skip to content

Commit

Permalink
Missed a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Oct 28, 2024
1 parent 25824f8 commit 1d07dea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Stores/RedisStorageProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@ export class RedisStorageProvider extends RedisStorageContextualProvider impleme
await this.redis.ltrim(key, 0, MAX_FEED_ITEMS);
}

public async hasSeenHoundChallenge(challengeId: string): Promise<boolean> {
const key = `${HOUND_GUIDS}${challengeId}`;
return (await this.redis.exists(key)) === 1;
}

public async hasSeenHoundActivity(challengeId: string, ...activityHashes: string[]): Promise<string[]> {
let multi = this.redis.multi();
const key = `${HOUND_GUIDS}${challengeId}`;
Expand Down

0 comments on commit 1d07dea

Please sign in to comment.