Skip to content

Commit

Permalink
Fix intercom issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tspenov committed Nov 21, 2024
1 parent 6a84e23 commit be5a889
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions lib/sanbase/clickhouse/api_call_data.ex
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ defmodule Sanbase.Clickhouse.ApiCallData do
query_struct = users_used_sansheets_query(until)

ClickhouseRepo.query_transform(query_struct, fn [value] -> value end)
|> maybe_unwrap_ok_value()
end

@spec api_calls_count_per_user(Keyword.t()) ::
Expand All @@ -79,7 +78,6 @@ defmodule Sanbase.Clickhouse.ApiCallData do
ClickhouseRepo.query_reduce(query_struct, %{}, fn [user_id, count], acc ->
Map.put(acc, user_id, count)
end)
|> maybe_unwrap_ok_value()
end

@spec api_metric_distribution() ::
Expand Down
2 changes: 1 addition & 1 deletion lib/sanbase/intercom/intercom.ex
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ defmodule Sanbase.Intercom do
{:ok, users_used_api} = ApiCallData.users_used_api()
{:ok, users_used_sansheets} = ApiCallData.users_used_sansheets()
{:ok, api_calls_count_per_user} = ApiCallData.api_calls_count_per_user()
{:ok, all_user_subscriptions_map} = Subscription.Stats.all_user_subscriptions_map()
all_user_subscriptions_map = Subscription.Stats.all_user_subscriptions_map()

%{
paid_users: paid_users(),
Expand Down

0 comments on commit be5a889

Please sign in to comment.