From 7fe6dee81cdcf90f405adec878f5a0e36fbdeb2f Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Sun, 3 May 2020 17:05:04 +0200 Subject: [PATCH] fix --- lib/DatabaseCrudHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {