Skip to content

Commit

Permalink
fix: update /event_log api path (pinterest#1130)
Browse files Browse the repository at this point in the history
  • Loading branch information
jczhong84 authored and aidenprice committed Jan 3, 2024
1 parent 6231354 commit c59802e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion querybook/server/datasources/event_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from lib.event_logger import event_logger


@register("/event_log/", methods=["POST"], api_logging=False)
@register("/context_log/", methods=["POST"], api_logging=False)
def log_frontend_event(events: list[FrontendEvent]):
"""Log a list of frontend events.
Expand Down
2 changes: 1 addition & 1 deletion querybook/webapp/resource/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { AnalyticsEvent } from 'const/analytics';
import ds from 'lib/datasource';

export const AnalyticsResource = {
create: (events: AnalyticsEvent[]) => ds.save(`/event_log/`, { events }),
create: (events: AnalyticsEvent[]) => ds.save(`/context_log/`, { events }),
};

0 comments on commit c59802e

Please sign in to comment.