Skip to content

Commit 4538b93

Browse files
author
Kushagra Singh Bisen
committed
fixes: linting errors.
1 parent 16f50e7 commit 4538b93

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/service/CacheService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class CacheService {
9292
* Get all key-value pairs from the Redis cache.
9393
* This method is not recommended for large databases, as it will load all key-value pairs into memory and be slow.
9494
* However, it is useful for notification caching, where the database is expected to be small to get the missing notifications.
95-
* @return {Promise<{ [key: string]: string }>} - A promise that resolves to an object containing all key-value pairs in the cache.
95+
* @returns {Promise<{ [key: string]: string }>} - A promise that resolves to an object containing all key-value pairs in the cache.
9696
* @memberof CacheService
9797
*/
9898
async read_whole_database(): Promise<{ [key: string]: string }> {

src/utils/FetchUtil.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
import { Readable } from "stream"
22
import { CacheService } from "../service/CacheService";
33
const cache_service = new CacheService();
4+
/**
5+
* Fetches the members from the cache service between the specified dates.
6+
* @param {{
7+
* from?: Date,
8+
* until?: Date,
9+
* }} [opts] - The options for the fetch.
10+
* @param {Date} [opts.from] - The start date.
11+
* @param {Date} [opts.until] - The end date.
12+
* @returns {Promise<Readable>} - A promise that resolves to a readable stream of the members.
13+
*/
414
export async function getMembers(opts?: {
515
from?: Date,
616
until?: Date,

0 commit comments

Comments
 (0)