diff --git a/wwwroot/api/product_category_create.dspy b/wwwroot/api/product_category_create.dspy index 283f7c7..b7806d3 100644 --- a/wwwroot/api/product_category_create.dspy +++ b/wwwroot/api/product_category_create.dspy @@ -44,7 +44,7 @@ try: fields[k] = '' async with DBPools().sqlorContext(dbname) as sor: - await sor.C('product_category', data) + await sor.C('product_category', fields) _new_rows = await sor.sqlExe("SELECT * FROM product_category WHERE id = ${id}$", {'id': data['id']}) _user_data = _new_rows[0] if _new_rows else data