fix(api): 🐛 Fix rules being duplicated in API

Having default values merged with the existing config was incorrectly causing extra values to appear in rules
This commit is contained in:
Jesse Wierzbinski 2024-04-15 08:22:56 -10:00
parent a1c261f47d
commit e5e8099883
No known key found for this signature in database

View file

@ -75,7 +75,7 @@ export interface Config {
/** @default true */
registration: boolean;
/** @default ["Do not harass others","Be nice to people","Don't spam","Don't post illegal content"] */
/** @default [] */
rules: string[];
};
@ -423,12 +423,7 @@ export const defaultConfig: Config = {
signups: {
tos_url: "https://my-site.com/tos",
registration: true,
rules: [
"Do not harass others",
"Be nice to people",
"Don't spam",
"Don't post illegal content",
],
rules: [],
},
oidc: {
providers: [],