Skip to content

Commit

Permalink
Check record usr activity endpoint for active user existing
Browse files Browse the repository at this point in the history
  • Loading branch information
dkildar committed Nov 25, 2024
1 parent 373845b commit 4b69fa3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/api/mutations/record-user-activity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function useRecordUserActivity() {
({ visionFeatures }) => visionFeatures.userActivityTracking.enabled,
{
mutationKey: ["recordUserActivity", activeUser?.username],
mutationFn: ({
mutationFn: async ({
ty,
bl = "",
tx = ""
Expand All @@ -20,8 +20,12 @@ export function useRecordUserActivity() {
bl?: string | number;
tx?: string | number;
}) => {
if (!activeUser) {
return;
}

const params: Record<string, string | number | undefined> = {
code: getAccessToken(activeUser!.username),
code: getAccessToken(activeUser.username),
ty
};

Expand Down

0 comments on commit 4b69fa3

Please sign in to comment.