13 lines
342 B
JavaScript
13 lines
342 B
JavaScript
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);
|
|
};
|
|
}
|