diff --git a/lib/DatabaseCrudHandler.ts b/lib/DatabaseCrudHandler.ts index be08529..1506b5d 100644 --- a/lib/DatabaseCrudHandler.ts +++ b/lib/DatabaseCrudHandler.ts @@ -79,7 +79,7 @@ export class DatabaseCrudHandler extends HttpHandler implements CrudHandler { cm.update (); res.status (found ? http.status_ok : http.status_not_found) - .json (cm.object); + .json (cm.get_data ()); } public async update (req: Request, res: Response): Promise {