mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
feat(BE): update approval flow to use head area instead of manager
This commit is contained in:
@@ -229,8 +229,8 @@ func (u *ExpenseController) Approval(c *fiber.Ctx) error {
|
||||
|
||||
path := c.Path()
|
||||
approvalType := ""
|
||||
if strings.Contains(path, "/approvals/manager") {
|
||||
approvalType = "manager"
|
||||
if strings.Contains(path, "/approvals/head-area") {
|
||||
approvalType = "head-area"
|
||||
} else if strings.Contains(path, "/approvals/finance") {
|
||||
approvalType = "finance"
|
||||
} else if strings.Contains(path, "/approvals/unit-vice-president") {
|
||||
|
||||
Reference in New Issue
Block a user