u
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import sql from 'mssql';
|
||||
import { GET_TREE } from '../../sql/category.js';
|
||||
|
||||
export default function getTree(pool) {
|
||||
return async (rootId) => {
|
||||
const result = await pool
|
||||
.request()
|
||||
.input('rootId', sql.Int, rootId)
|
||||
.input('rootId', rootId)
|
||||
.query(GET_TREE);
|
||||
|
||||
return result.recordset;
|
||||
|
||||
Reference in New Issue
Block a user