repair: reset brand device without sparepart
This commit is contained in:
@@ -13,8 +13,6 @@ const getErrorCodesByBrandIdDb = async (brandId) => {
|
||||
return result.recordset;
|
||||
};
|
||||
|
||||
|
||||
// Create error code for brand
|
||||
const createErrorCodeDb = async (brandId, data) => {
|
||||
const store = {
|
||||
brand_id: brandId,
|
||||
@@ -33,7 +31,6 @@ const createErrorCodeDb = async (brandId, data) => {
|
||||
return insertedId;
|
||||
};
|
||||
|
||||
// Update error code by brand ID and error code
|
||||
const updateErrorCodeDb = async (brandId, errorCode, data) => {
|
||||
const store = { ...data };
|
||||
const whereData = {
|
||||
@@ -46,7 +43,6 @@ const updateErrorCodeDb = async (brandId, errorCode, data) => {
|
||||
return true;
|
||||
};
|
||||
|
||||
// Soft delete error code by brand ID and error code
|
||||
const deleteErrorCodeDb = async (brandId, errorCode, deletedBy) => {
|
||||
const queryText = `
|
||||
UPDATE brand_code
|
||||
@@ -57,7 +53,6 @@ const deleteErrorCodeDb = async (brandId, errorCode, deletedBy) => {
|
||||
return true;
|
||||
};
|
||||
|
||||
// Get error code by error_code_id
|
||||
const getErrorCodeByIdDb = async (error_code_id) => {
|
||||
const queryText = `
|
||||
SELECT
|
||||
|
||||
Reference in New Issue
Block a user