mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-20 17:13:49 +00:00
chore: auto-fix lint & formatting [skip ci]
This commit is contained in:
1 parent
2281c19939
commit
29b15f4933
2 files changed
+15
-13
No files matched your search
@@ -65,18 +65,20 @@ export function d1ConfigStore(db: D1Database, kv: KVNamespace): ConfigStore {
|
||||
if (!filters || !targets || (r.discord_role_ids && !discordRoleIds) || (r.ast && !ast)) {
|
||||
return [];
|
||||
}
|
||||
return [{
|
||||
id: r.id,
|
||||
groupId: r.group_id,
|
||||
name: r.name,
|
||||
enabled: r.enabled === 1,
|
||||
filters,
|
||||
targets,
|
||||
stop: r.stop === 1,
|
||||
fallback: r.fallback === 1,
|
||||
discordRoleIds: discordRoleIds ?? undefined,
|
||||
ast: ast ?? undefined,
|
||||
}];
|
||||
return [
|
||||
{
|
||||
id: r.id,
|
||||
groupId: r.group_id,
|
||||
name: r.name,
|
||||
enabled: r.enabled === 1,
|
||||
filters,
|
||||
targets,
|
||||
stop: r.stop === 1,
|
||||
fallback: r.fallback === 1,
|
||||
discordRoleIds: discordRoleIds ?? undefined,
|
||||
ast: ast ?? undefined,
|
||||
},
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user