mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Fix write routes block being applied always in dev
This commit is contained in:
@@ -33,7 +33,7 @@ app.use(cors())
|
||||
app.use(compression())
|
||||
app.use(responseLogger)
|
||||
|
||||
if (!ENABLE_WRITE || RUNNING_ENV === 'dev') {
|
||||
if (!ENABLE_WRITE && RUNNING_ENV !== 'dev') {
|
||||
app.use(blockWriteRequests)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user