Skip to content

Commit

Permalink
Merge pull request #197 from icefoganalytics/test
Browse files Browse the repository at this point in the history
Minor updates for portal
  • Loading branch information
datajohnson authored Nov 2, 2023
2 parents 5968220 + 9a7a90a commit 5be5c49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/api/routes/admin/application-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,10 @@ applicationRouter.put(
const { application_id, id } = req.params;
const { data } = req.body;

if (data.status_id || data.status_reason_id) {
data.status_date = new Date();
}

try {
const resUpdate = await db("sfa.funding_request")
.where({ id, application_id })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class StudentApplicationFundingRequestsService {
.where({ applicationId: this.#applicationId })
.innerJoin("requestType", "requestType.id", "fundingRequest.requestTypeId")
.leftJoin("status", "fundingRequest.statusId", "status.id")
.leftJoin("statusReason", "fundingRequest.statusReasonId", "status.id")
.leftJoin("statusReason", "fundingRequest.statusReasonId", "statusReason.id")
.select(
"fundingRequest.*",
"status.description as statusDescription",
Expand Down

0 comments on commit 5be5c49

Please sign in to comment.