fix return types
This commit is contained in:
@@ -305,7 +305,7 @@ const main = async (): Promise<void> => {
|
||||
const fetchFromRedis = async (
|
||||
key: string,
|
||||
selectionCriteria: (responses: any) => any
|
||||
): Promise<JSON> => {
|
||||
): Promise<any> => {
|
||||
const redisResponses = await Promise.all(
|
||||
redisClients.map((client) => client.getRaw(key))
|
||||
);
|
||||
|
||||
@@ -473,7 +473,12 @@ export type SubscriberLookup = {
|
||||
};
|
||||
};
|
||||
|
||||
export const selectMostRecentBySlot = (responses: any[]): any => {
|
||||
export const selectMostRecentBySlot = (
|
||||
responses: any[]
|
||||
): {
|
||||
slot: number;
|
||||
[key: string]: any;
|
||||
} => {
|
||||
const parsedResponses = responses
|
||||
.map((response) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user