Skip to content

Commit cbdd31e

Browse files
Merge branch 'develop'
2 parents 650bea8 + 9cb8f03 commit cbdd31e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

packages/app/src/components/system/ImportForm.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { useQueryClient } from "@tanstack/react-query";
12
import NativeInput from "components/form/NativeInput";
23
import ExternalLink from "components/ui/ExternalLink";
34
import { useRef, useState } from "react";
@@ -8,6 +9,7 @@ const ImportForm = () => {
89
const importFileRef = useRef(null);
910
const [importResponse, setImportResponse] = useState(null);
1011
const [importButtonDisabled, setImportButtonDisabled] = useState(true);
12+
const queryClient = useQueryClient();
1113

1214
const handleUploadClick = (ev) => {
1315
ev.preventDefault();
@@ -19,6 +21,7 @@ const ImportForm = () => {
1921
.then((resp) => resp.json())
2022
.then((resp) => {
2123
setImportResponse(resp);
24+
queryClient.invalidateQueries();
2225
})
2326
.catch((err) => console.error(err));
2427
};

packages/app/src/components/users/LastLogin.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import RelativeDateFormatter from "components/ui/RelativeDateFormatter";
33
export const LastLogin = ({ user }) => {
44
return (
55
<>
6-
{user.last_login_ts ? (
7-
<RelativeDateFormatter date={user.last_login_ts} />
6+
{user.lastLoginAt ? (
7+
<RelativeDateFormatter date={user.lastLoginAt} />
88
) : (
99
"Never"
1010
)}

packages/app/src/models/User.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ interface UserInterface {
22
id?: number;
33
createdAt?: string;
44
updatedAt?: string;
5-
last_login_ts?: string;
5+
lastLoginAt?: string;
66
subject_id?: string;
77
active?: boolean;
88
mfaEnabled: boolean | undefined;

0 commit comments

Comments
 (0)