Update default value

This commit is contained in:
2023-06-22 21:02:52 +08:00
parent 1611c99390
commit a949ae438b

5
db.ts
View File

@@ -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<EhFileRaw>(