fix media upload without name, add data result to uploaded payload

This commit is contained in:
dswbx committed 2025-02-21 07:40:43 +01:00
1 parent eaa7276173
commit cfa950aa46
6 files changed
+30 -19

No files matched your search

+1 -1
View File
@@ -220,7 +220,7 @@ export class DataController extends Controller {
return c.notFound();
}
const where = c.req.json() as any;
const where = (await c.req.json()) as any;
const result = await this.em.repository(entity).count(where);
return c.json({ entity, count: result.count });
}