migrate: add randomMail option

This commit is contained in:
undefined committed 2024-05-14 23:24:47 +08:00
1 parent ffe06804a7
commit dcf16996c1
3 files changed
+9 -2

No files matched your search

+1
View File
@@ -31,6 +31,7 @@ export function apply(ctx: Context) {
password: Schema.string().required(),
domainId: Schema.string().default('system'),
dataDir: Schema.string().default('/opt/syzoj/web/uploads'),
randomMail: Schema.union(['never', 'needed', 'always']).default('never'),
}),
(...args) => require('./scripts/syzoj').run(...args),
);