diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-07-21 04:48:52 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-07-21 04:48:52 +0200 |
| commit | d41070c7b00fafc974a1a6e7b6d1b42391fa57ed (patch) | |
| tree | 4178eba89627e8581cdc5eea65bf7f11591f6b45 /lib/db/crud.js | |
| parent | d02cbad01f3abfa8a1aad0b55b8bd9cf544090cf (diff) | |
all async paths working
Diffstat (limited to 'lib/db/crud.js')
| -rw-r--r-- | lib/db/crud.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/db/crud.js b/lib/db/crud.js index fb32690..c0e0e2c 100644 --- a/lib/db/crud.js +++ b/lib/db/crud.js @@ -34,7 +34,7 @@ module.exports = function(model) { return new model({'id': id}).save(data) }, destroy: (id) => { - return new model({'id': id}).destroy(data) + return new model({'id': id}).destroy() }, } }
\ No newline at end of file |
