diff --git a/backend/src/routes/dispensaries.ts b/backend/src/routes/dispensaries.ts index 2bffb832..61f5a771 100644 --- a/backend/src/routes/dispensaries.ts +++ b/backend/src/routes/dispensaries.ts @@ -321,6 +321,7 @@ router.put('/:id', async (req, res) => { status, country, slug, + stage, } = req.body; // Validate menu_type if provided @@ -364,8 +365,9 @@ router.put('/:id', async (req, res) => { status = COALESCE($29, status), country = COALESCE($30, country), slug = COALESCE($31, slug), + stage = COALESCE($32, stage), updated_at = CURRENT_TIMESTAMP - WHERE id = $32 + WHERE id = $33 RETURNING * `, [ name, @@ -399,6 +401,7 @@ router.put('/:id', async (req, res) => { status, country, slug, + stage, id ]);