bom
This commit is contained in:
@@ -75,7 +75,7 @@ function createRobotRouter({ getPool, sql, requireManage, documentMaxBytes, docu
|
||||
return res.status(409).json({ success: false, message: 'Tên thể loại robot đã tồn tại' });
|
||||
}
|
||||
if (error.number === 547) {
|
||||
return res.status(409).json({ success: false, message: 'Thể loại đang được sử dụng. Hãy chuyển các robot sang thể loại khác trước khi xóa.' });
|
||||
return res.status(409).json({ success: false, message: 'Thể loại đang được robot hoặc BOM sử dụng. Không thể xóa để bảo toàn dữ liệu liên quan.' });
|
||||
}
|
||||
return fail(res, error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user