mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-20 15:01:47 +01:00
Fix
This commit is contained in:
@@ -8,8 +8,7 @@ export default async function ({redirect, route, $axios}: Context) {
|
||||
}
|
||||
})
|
||||
if (response.status === 200) {
|
||||
//isMaintenance = response.data.maintenance.active === 1 todo remove
|
||||
isMaintenance = false
|
||||
isMaintenance = response.data.maintenance.active === 1
|
||||
}
|
||||
if(isMaintenance){
|
||||
return redirect('/maintenance')
|
||||
|
||||
Reference in New Issue
Block a user