From 9d2f2c314b1d0aebbe00417fad0ad0f9b0f78178 Mon Sep 17 00:00:00 2001 From: Mehedi Hasan Masum Date: Sat, 20 May 2017 21:08:03 +0600 Subject: [PATCH] Delete functions parameter fixed fixed: 1st parameter of all 3 delete functions were mistaken --- lib/storage/simple_storage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/storage/simple_storage.js b/lib/storage/simple_storage.js index 795298443..fa6c6e01e 100755 --- a/lib/storage/simple_storage.js +++ b/lib/storage/simple_storage.js @@ -57,7 +57,7 @@ module.exports = function(config) { teams_db.save(team_data.id, team_data, cb); }, delete: function(team_id, cb) { - teams_db.delete(team_id.id, cb); + teams_db.delete(team_id, cb); }, all: function(cb) { teams_db.all(objectsToList(cb)); @@ -71,7 +71,7 @@ module.exports = function(config) { users_db.save(user.id, user, cb); }, delete: function(user_id, cb) { - users_db.delete(user_id.id, cb); + users_db.delete(user_id, cb); }, all: function(cb) { users_db.all(objectsToList(cb)); @@ -85,7 +85,7 @@ module.exports = function(config) { channels_db.save(channel.id, channel, cb); }, delete: function(channel_id, cb) { - channels_db.delete(channel_id.id, cb); + channels_db.delete(channel_id, cb); }, all: function(cb) { channels_db.all(objectsToList(cb));