Set<number | bigint> Map<number | bigint, xxx> not works well

This commit is contained in:
2024-05-31 14:36:26 +08:00
parent 8ea3ee98b1
commit f57808c2ff
4 changed files with 11 additions and 11 deletions

View File

@@ -212,7 +212,7 @@ export async function download_task(
task.gid,
task.token,
]);
const gdata = gdatas.map.get(task.gid);
const gdata = gdatas.map.get(BigInt(task.gid));
if (gdata === undefined) throw Error("Gallery metadata not included.");
if (typeof gdata === "string") throw Error(gdata);
const gmeta = gdatas.convert(gdata);