hngx-org/Commanders-food-backend

🥘 Send a User Lunch Controller Handler [CONTROLLER HANDLER]

Closed this issue · 3 comments

Controller handler name: send
Location: Inside the lunch.controller.js file

Your controller handler should do the following:

  • Your handler should be able to send lunch credit to multiple or single user.
  • For each lunch credit, calculate the total amount that would be deducted from organization wallet.
  • Update the credited user lunch credit balance.
  • Create an activity within the lunches table.

Make sure your calculation are accurate and precise.

If the file doesn't exists yet, create it with the same format other controller file uses.

@Benrobo, Can I be assigned to this? Thank you.

@Benrobo, please is the auth middleware already set up? So that I can continue working on the lunch controller. I am sorry I am a bit slow. The whole logic thing is a bit difficult to understand.

@Mayor-Rhymes The isAuthenticated middleware has been implemented