Skip to content

Commit

Permalink
fix: shop export
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7An committed Sep 22, 2019
1 parent f6a7f3f commit 0bfc7e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/domain/shop/shopRepository.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const handleMongoQuery = async (queryCallback) => {
}
}

export const ShopsRepository = {
export const shopRepository = {
getAll : async () => handleMongoQuery(Shop.find({})),
getById : async (id) => handleMongoQuery(Shop.findById(id)),
create: async (userData) => handleMongoQuery(Shop.create(userData)),
Expand Down
2 changes: 1 addition & 1 deletion src/domain/shop/shopService.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ const _getFieldsToUpdate = (fields) => {
}
}

export const ShopsService = new ShopService();
export const shopService = new ShopService();

0 comments on commit 0bfc7e7

Please sign in to comment.