From 94b13aa5343bfbed15cbcf3c392084b924d4e923 Mon Sep 17 00:00:00 2001 From: bcgov-brwang Date: Wed, 1 May 2024 13:22:46 -0700 Subject: [PATCH 1/5] TH-114320,TH-1144422, TH-113933: fixed 401 login error --- Server/HetsApi/Helpers/UserAccountHelper.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Server/HetsApi/Helpers/UserAccountHelper.cs b/Server/HetsApi/Helpers/UserAccountHelper.cs index d6e9bad2..afd61588 100644 --- a/Server/HetsApi/Helpers/UserAccountHelper.cs +++ b/Server/HetsApi/Helpers/UserAccountHelper.cs @@ -142,6 +142,9 @@ public static HetUser GetUser(DbAppContext context, string username, string guid updUser.AppLastUpdateUserGuid = guid; updUser.AppLastUpdateUserid = username; updUser.AppLastUpdateTimestamp = DateTime.UtcNow; + updUser.AppCreateTimestamp = updUser.AppCreateTimestamp.ToUniversalTime(); + updUser.DbCreateTimestamp = updUser.DbCreateTimestamp.ToUniversalTime(); + updUser.DbLastUpdateTimestamp = updUser.DbLastUpdateTimestamp.ToUniversalTime(); context.HetUsers.Update(updUser); From 4a5dddd3e3c1733c795ba6061c8641a9116c6cb8 Mon Sep 17 00:00:00 2001 From: bcgov-brwang Date: Thu, 2 May 2024 09:51:52 -0700 Subject: [PATCH 2/5] TH-114443: fixed the issue that noting showed when new request added --- client/src/js/views/RentalRequests.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/src/js/views/RentalRequests.jsx b/client/src/js/views/RentalRequests.jsx index 9bb7cb51..05bed22c 100644 --- a/client/src/js/views/RentalRequests.jsx +++ b/client/src/js/views/RentalRequests.jsx @@ -216,8 +216,13 @@ class RentalRequests extends React.Component { closeAddDialog = () => { this.setState({ showAddDialog: false }); + this.fetch(); }; + + + + newRentalAdded = async (rentalRequest) => { await this.props.dispatch(Log.rentalRequestAdded(rentalRequest)); this.props.history.push(`${Constant.RENTAL_REQUESTS_PATHNAME}/${rentalRequest.id}`); @@ -373,7 +378,7 @@ class RentalRequests extends React.Component { CUSTOM, ]} /> -