This commit is contained in:
seb
2026-07-31 05:57:23 +02:00
parent b99c3a9ec7
commit 02bca8e236
14 changed files with 93 additions and 132 deletions

View File

@@ -2,10 +2,10 @@ import sql from 'mssql';
import { CREATE } from '../../sql/category.js';
export default function create(pool) {
return async ({ parent_id, sort }) => {
return async ({ parentId, sort }) => {
const result = await pool
.request()
.input('parentId', sql.Int, parent_id)
.input('parentId', sql.Int, parentId)
.input('sort', sql.Int, sort)
.query(CREATE);