mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-13 13:04:24 +01:00
feat: add terms acceptance timestamp tracking and migration script
This commit is contained in:
parent
299efc2ccb
commit
7b2ebe4bdd
10 changed files with 134 additions and 4 deletions
|
|
@ -1043,6 +1043,7 @@ export const useAcceptTermsMutation = (
|
|||
onSuccess: (data, variables, context) => {
|
||||
queryClient.setQueryData<t.TUserTermsResponse>([QueryKeys.userTerms], {
|
||||
termsAccepted: true,
|
||||
termsAcceptedAt: new Date().toISOString(),
|
||||
});
|
||||
options?.onSuccess?.(data, variables, context);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue