removed legacy code
Massimo Melina committed
Apr 30, 2022 at 22:15 UTC
b52c6235c7cb1bd4a603e96ac6c2e521a97cd2f9
1 file changed
-7
server/src/perm.ts
-7
@@ -85,13 +85,6 @@ export async function updateAccount(account: Account, changer?:Changer) {
85
86
const saveAccountsAsap = saveConfigAsap
87
88
-// legacy, remove after May 1
89
-watchLoad('accounts.yaml', accounts => {
90
- if (accounts)
91
- setConfig(accounts)
92
- unlink('accounts.yaml', () => console.log("accounts file merged"))
93
-})
94
-
88
defineConfig<Accounts>('accounts', {}).sub(async v => {
89
// we should validate content here
90
accounts = v // keep local reference