Clean some code

This commit is contained in:
yflory
2019-09-04 17:54:32 +02:00
parent 670d845262
commit fd7567188b
2 changed files with 10 additions and 5 deletions

View File

@@ -1524,10 +1524,12 @@ define([
});
};
Store.addSharedFolder = function (clientId, data, cb) {
Store.userObjectCommand(clientId, {
cmd: 'addSharedFolder',
data: data
}, cb);
store.manager.addSharedFolder(data, function (id) {
sendDriveEvent('DRIVE_CHANGE', {
path: ['drive', UserObject.FILES_DATA]
}, clientId);
cb(id);
});
};
// Drive