🥘 Send a User Lunch Controller Handler [CONTROLLER HANDLER]
Closed this issue · 3 comments
Benrobo commented
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
orsingle
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.
- Send the client response payload as seen within on the notion endpoint documentation
If the file doesn't exists yet, create it with the same format other controller file uses.
Mayor-Rhymes commented
@Benrobo, Can I be assigned to this? Thank you.
Mayor-Rhymes commented
@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.
Benrobo commented
@Mayor-Rhymes The isAuthenticated middleware has been implemented