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

Fix- Delete functions parameter fixed in simple_storage.js #854

Merged
merged 1 commit into from
Jun 19, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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