Improved upload
This commit is contained in:
@@ -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 })
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user