Skip to content

Commit

Permalink
fixes: linting errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
argahsuknesib committed Mar 7, 2024
1 parent 16f50e7 commit 4538b93
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/CacheService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class CacheService {
* Get all key-value pairs from the Redis cache.
* This method is not recommended for large databases, as it will load all key-value pairs into memory and be slow.
* However, it is useful for notification caching, where the database is expected to be small to get the missing notifications.
* @return {Promise<{ [key: string]: string }>} - A promise that resolves to an object containing all key-value pairs in the cache.
* @returns {Promise<{ [key: string]: string }>} - A promise that resolves to an object containing all key-value pairs in the cache.
* @memberof CacheService
*/
async read_whole_database(): Promise<{ [key: string]: string }> {
Expand Down
10 changes: 10 additions & 0 deletions src/utils/FetchUtil.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
import { Readable } from "stream"
import { CacheService } from "../service/CacheService";
const cache_service = new CacheService();
/**
* Fetches the members from the cache service between the specified dates.
* @param {{
* from?: Date,
* until?: Date,
* }} [opts] - The options for the fetch.
* @param {Date} [opts.from] - The start date.
* @param {Date} [opts.until] - The end date.
* @returns {Promise<Readable>} - A promise that resolves to a readable stream of the members.
*/
export async function getMembers(opts?: {
from?: Date,
until?: Date,
Expand Down

0 comments on commit 4538b93

Please sign in to comment.