in progress: connecting new service providers to express api
This commit is contained in:
@@ -7,4 +7,13 @@ module.exports = class CartService {
|
||||
const result = await CartInstance.create(userid);
|
||||
if (!result) throw createError();
|
||||
}
|
||||
|
||||
async getCart(userid) {
|
||||
const result = await CartInstance.findOneByUserId(userid);
|
||||
}
|
||||
|
||||
async addItem(userid, item) {
|
||||
const cart = await CartInstance.findOneByUserId(userid);
|
||||
const item = "await CartProductInstance.create(item)";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user