We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b03bef commit 4b74299Copy full SHA for 4b74299
src/services/queries/items/by-ending-time.ts
@@ -1,5 +1,6 @@
1
import { client } from "$services/redis";
2
import { itemsByEndingAtKey, itemsKey } from "$services/keys";
3
+import { deserialize } from "./deserialize";
4
5
export const itemsByEndingTime = async (
6
order: "DESC" | "ASC" = "DESC",
@@ -14,5 +15,9 @@ export const itemsByEndingTime = async (
14
15
},
16
});
17
- console.log("-------------", ids);
18
+ const results = await Promise.all(
19
+ ids.map((id) => client.hGetAll(itemsKey(id)))
20
+ );
21
+
22
+ return results.map((item, i) => deserialize(ids[i], item));
23
};
0 commit comments