diff --git a/lib/sanbase_web/graphql/schema/queries/billing_queries.ex b/lib/sanbase_web/graphql/schema/queries/billing_queries.ex index 0a3ad3859..9636ec580 100644 --- a/lib/sanbase_web/graphql/schema/queries/billing_queries.ex +++ b/lib/sanbase_web/graphql/schema/queries/billing_queries.ex @@ -42,6 +42,7 @@ defmodule SanbaseWeb.Graphql.Schema.BillingQueries do meta(access: :free) arg(:coupon, non_null(:string)) + middleware(JWTAuth) resolve(&BillingResolver.get_coupon/3) end