Skip to content

Commit

Permalink
⚡️ Update Server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nmdra committed Oct 12, 2024
1 parent 58f8cf1 commit 7a856fe
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ import {
startSyncDeliveryOrderStatus,
} from './controllers/DLOcontroller.js' // Import the periodic check


// {/*checkForAvailableDrivers() //DL
// startOrderAssignment()
// startSyncDeliveryOrderStatus() //DL
// cleanUpDuplicateDeliveries() */}
// Production-only delivery task scheduling
if (process.env.NODE_ENV === 'production') {
checkForAvailableDrivers()
startOrderAssignment()
startSyncDeliveryOrderStatus()
cleanUpDuplicateDeliveries()
}


import { errorHandler, notFound } from './middlewares/errorMiddleware.js'
Expand Down

0 comments on commit 7a856fe

Please sign in to comment.