Improved upload

This commit is contained in:
Sebastian Seedorf
2022-08-18 10:38:48 +02:00
parent ffb93d9da4
commit d97786f880
11 changed files with 93 additions and 52 deletions

View File

@@ -9,6 +9,7 @@ const {
const handler = nextHandler(async (req, res) => {
if (req.method !== 'GET') throw new NetworkError('Invalid method')
if (TENANT_TYPE !== 'local') throw new NetworkError('Not allowed', undefined, 400)
waitForInitSchemas.reset()
await waitForInitSchemas.resolve()
res.json({ success: true })
})