mirror of
https://github.com/bknd-io/bknd.git
synced 2026-10-23 14:55:11 +00:00
fix media upload without name, add data result to uploaded payload
This commit is contained in:
6 files changed
+30
-19
No files matched your search
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user