deleteContainer() refactored to arrow function

This commit is contained in:
Soundharyaam 2018-09-20 23:43:44 +05:30
parent 99db192792
commit 9317e30705

View file

@ -69,10 +69,10 @@ const assignManager = {
return this.area.remove([siteStoreKey]); return this.area.remove([siteStoreKey]);
}, },
async deleteContainer(userContextId) { deleteContainer(async (userContextId) => {
const sitesByContainer = await this.getByContainer(userContextId); const sitesByContainer = await this.getByContainer(userContextId);
this.area.remove(Object.keys(sitesByContainer)); this.area.remove(Object.keys(sitesByContainer));
}, }),
async getByContainer(userContextId) { async getByContainer(userContextId) {
const sites = {}; const sites = {};