moved main pkg back to deps to reduce tarball size + removed zod + cleanup old code + fixed tests

This commit is contained in:
dswbx
2024-12-07 10:11:26 +01:00
parent e5924b33e5
commit 71dbfc5469
11 changed files with 28 additions and 578 deletions

View File

@@ -369,9 +369,9 @@ export class DataController implements ClassController {
return c.notFound();
}
const where = c.req.valid("json") as RepoQuery["where"];
console.log("where", where);
//console.log("where", where);
const result = await this.em.mutator(entity).deleteMany(where);
const result = await this.em.mutator(entity).deleteWhere(where);
return c.json(this.mutatorResult(result));
}