fixhardcoded warehouse name

This commit is contained in:
Dobromir Popov
2024-12-02 16:55:56 +02:00
parent f678f1a924
commit b54b50a041

View File

@ -184,12 +184,12 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
if (shift) { if (shift) {
// Determine the first shift of the day if it requires transport // Determine the first shift of the day if it requires transport
if (time === times[0] && shift.requiresTransport) { // Check if this is the first time slot of the day if (time === times[0] && shift.requiresTransport) { // Check if this is the first time slot of the day
shift.notes = "Докарва количка от Люлин -"; // Update the first shift in the first time slot shift.notes = "Докарва количка от Склад Сердика -"; // Update the first shift in the first time slot
} }
// Determine the last shift of the day if it requires transport // Determine the last shift of the day if it requires transport
if (time === times[times.length - 1] && shift.requiresTransport) { // Check if this is the last time slot of the day if (time === times[times.length - 1] && shift.requiresTransport) { // Check if this is the last time slot of the day
shift.notes = "Прибира количка в Люлин -"; // Update the last shift in the last time slot shift.notes = "Прибира количка в Склад Сердика -"; // Update the last shift in the last time slot
} }
} }
} }