From a949ae438bf9973a2a9723bb3934e31bdba35726 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Thu, 22 Jun 2023 21:02:52 +0800 Subject: [PATCH] Update default value --- db.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/db.ts b/db.ts index 56c87e9..68b60a0 100644 --- a/db.ts +++ b/db.ts @@ -766,7 +766,10 @@ export class EhDb { [gid], )[0][0]; } - get_random_file(is_nsfw: boolean | null, is_ad: boolean | null) { + get_random_file( + is_nsfw: boolean | null = null, + is_ad: boolean | null = null, + ) { if (is_nsfw === null && is_ad === null) { const s = this.convert_file( this.db.queryEntries(