Skip to content

Commit

Permalink
(fix) ensure force updates cache
Browse files Browse the repository at this point in the history
  • Loading branch information
driiftkiing committed Mar 15, 2024
1 parent 0a3a294 commit 63a2dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/api/v1/verse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ verse.get(
return apiError(res, 400, 'Chapter not found.');
}

if (!resultsFromCache) {
if (!resultsFromCache || force) {
if (redisClient) {
await redisClient.set(URL, data, {EX: REDIS_VERSE_EXPIRATION()});
}
Expand Down

0 comments on commit 63a2dc3

Please sign in to comment.