Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #854 from mehamasum/patch-1
Browse files Browse the repository at this point in the history
Fix- Delete functions parameter fixed in simple_storage.js
  • Loading branch information
Ben Brown authored Jun 19, 2017
2 parents 672aaad + 9d2f2c3 commit ca5010d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/storage/simple_storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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));
Expand All @@ -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));
Expand Down

0 comments on commit ca5010d

Please sign in to comment.