mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-16 15:38:10 +01:00
feat: enhance terms acceptance response to include acceptance timestamp
This commit is contained in:
parent
4fe9e98442
commit
d6d61254ad
3 changed files with 7 additions and 3 deletions
|
|
@ -1068,7 +1068,7 @@ export const useAcceptTermsMutation = (
|
|||
onSuccess: (data, variables, context) => {
|
||||
queryClient.setQueryData<t.TUserTermsResponse>([QueryKeys.userTerms], {
|
||||
termsAccepted: true,
|
||||
termsAcceptedAt: new Date().toISOString(),
|
||||
termsAcceptedAt: data.termsAcceptedAt,
|
||||
});
|
||||
options?.onSuccess?.(data, variables, context);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue