u
This commit is contained in:
12
src/store/company/setRootCategory.js
Normal file
12
src/store/company/setRootCategory.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import sql from 'mssql';
|
||||
import { SET_ROOT_CATEGORY } from '../../sql/company.js';
|
||||
|
||||
export default function setRootCategory(pool) {
|
||||
return async (companyId, categoryId) => {
|
||||
await pool
|
||||
.request()
|
||||
.input('companyId', sql.Int, companyId)
|
||||
.input('categoryId', sql.Int, categoryId)
|
||||
.query(SET_ROOT_CATEGORY);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user