feat: add terms acceptance timestamp tracking and migration script

This commit is contained in:
Marco Beretta 2025-11-30 23:53:23 +01:00
parent 3e8ef24cfa
commit 44f7aad007
No known key found for this signature in database
GPG key ID: D918033D8E74CC11
10 changed files with 134 additions and 4 deletions

View file

@ -1068,6 +1068,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);
},