Skip to content

Commit

Permalink
Fix table name
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSun48 committed Mar 5, 2025
1 parent 3bc04c8 commit 5fff614
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from sentry.api.base import region_silo_endpoint
from sentry.api.bases.organization import OrganizationEndpoint, OrganizationPermission
from sentry.models.groupsearchview import GroupSearchView
from sentry.models.groupsearchviewlastseen import GroupSearchViewLastSeen
from sentry.models.groupsearchviewlastvisited import GroupSearchViewLastVisited
from sentry.models.organization import Organization


Expand Down Expand Up @@ -42,11 +42,11 @@ def post(self, request: Request, organization: Organization, view_id: str) -> Re
return Response(status=status.HTTP_404_NOT_FOUND)

# Create or update the last_seen timestamp
GroupSearchViewLastSeen.objects.create_or_update(
GroupSearchViewLastVisited.objects.create_or_update(
organization=organization,
user_id=request.user.id,
group_search_view=view,
values={"last_seen": timezone.now()},
values={"last_visited": timezone.now()},
)

return Response(status=status.HTTP_204_NO_CONTENT)

0 comments on commit 5fff614

Please sign in to comment.