fix return types
This commit is contained in:
@@ -305,7 +305,7 @@ const main = async (): Promise<void> => {
|
|||||||
const fetchFromRedis = async (
|
const fetchFromRedis = async (
|
||||||
key: string,
|
key: string,
|
||||||
selectionCriteria: (responses: any) => any
|
selectionCriteria: (responses: any) => any
|
||||||
): Promise<JSON> => {
|
): Promise<any> => {
|
||||||
const redisResponses = await Promise.all(
|
const redisResponses = await Promise.all(
|
||||||
redisClients.map((client) => client.getRaw(key))
|
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
|
const parsedResponses = responses
|
||||||
.map((response) => {
|
.map((response) => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user