From 03f069fc74676538e6bc60609a30e7d49ff9e324 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sun, 30 Jul 2017 16:22:44 +0200 Subject: [PATCH] Fix delete function in services. --- src/accounts/account.service.ts | 2 +- src/operations/operation.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/accounts/account.service.ts b/src/accounts/account.service.ts index c9b9f3a..5003350 100644 --- a/src/accounts/account.service.ts +++ b/src/accounts/account.service.ts @@ -37,6 +37,6 @@ export class AccountService { } delete(account: Account): Observable { - return this.one(account.id).delete(); + return this.one(account.id).remove(); } } diff --git a/src/operations/operation.service.ts b/src/operations/operation.service.ts index 084c544..5ff0931 100644 --- a/src/operations/operation.service.ts +++ b/src/operations/operation.service.ts @@ -64,6 +64,6 @@ export class OperationService { } delete(operation: Operation): Observable { - return this.one(operation.id).delete(); + return this.one(operation.id).remove(); } }