Skip to content

[Backend] Fix token.service.ts Redis connection type errors - #1004

Merged
ayomideadeniran merged 2 commits into
StellarDevHub:mainfrom
davidsoniaudin2-oss:fix/971-token-service-redis-errors
Aug 4, 2026
Merged

[Backend] Fix token.service.ts Redis connection type errors#1004
ayomideadeniran merged 2 commits into
StellarDevHub:mainfrom
davidsoniaudin2-oss:fix/971-token-service-redis-errors

Conversation

@davidsoniaudin2-oss

Copy link
Copy Markdown
Contributor

Description

Fixes Redis mock type errors in token.service.ts by updating the test Redis client in backend/src/utils/redis.ts:

  • Added ...args: any[] rest parameter to the set() mock method to properly accept EX/ttl options (resolves TS2554)
  • Added keys() method to the test Redis client using regex pattern matching for glob-style patterns (resolves TS2339)

Closes #971

Add ...args rest param to set() mock so it accepts EX/ttl options. Add keys() method to test Redis client using regex pattern matching.

Closes StellarDevHub#971
@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

@davidsoniaudin2-oss is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 27, 2026

Copy link
Copy Markdown

@davidsoniaudin2-oss Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@ayomideadeniran

Copy link
Copy Markdown
Contributor

pr under review

@ayomideadeniran
ayomideadeniran merged commit 1a395bf into StellarDevHub:main Aug 4, 2026
0 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Backend] Fix token.service.ts Redis connection type errors

2 participants