Better handle bigint

This commit is contained in:
2024-05-31 14:24:57 +08:00
parent 15ff42d8c4
commit 8437bf1436
36 changed files with 320 additions and 227 deletions

View File

@@ -132,7 +132,7 @@ export class MeiliSearchServer {
const gmeta = await this.gmeta;
await this.waitTask(gmeta.deleteAllDocuments());
}
async updateGallery(...gids: number[]) {
async updateGallery(...gids: (number | bigint)[]) {
const gmeta = await this.gmeta;
const datas = gids.map((gid) => {
const d = this.db.get_gmeta_by_gid(gid);