Skip to content

Commit

Permalink
feat: tenanted quotes and outgoing payments - update quote resolver c…
Browse files Browse the repository at this point in the history
…ontext
  • Loading branch information
sanducb committed Feb 13, 2025
1 parent f4b141e commit 1376e62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/backend/src/graphql/resolvers/quote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
errorToMessage
} from '../../open_payments/quote/errors'
import { Quote } from '../../open_payments/quote/model'
import { ForTenantIdContext, TenantedApolloContext } from '../../app'
import { TenantedApolloContext } from '../../app'
import { getPageInfo } from '../../shared/pagination'
import { Pagination, SortOrder } from '../../shared/baseModel'
import { CreateQuoteOptions } from '../../open_payments/quote/service'
Expand All @@ -38,10 +38,10 @@ export const getQuote: QueryResolvers<TenantedApolloContext>['quote'] = async (
return quoteToGraphql(quote)
}

export const createQuote: MutationResolvers<ForTenantIdContext>['createQuote'] =
export const createQuote: MutationResolvers<TenantedApolloContext>['createQuote'] =
async (parent, args, ctx): Promise<ResolversTypes['QuoteResponse']> => {
const quoteService = await ctx.container.use('quoteService')
const tenantId = ctx.forTenantId
const tenantId = ctx.tenant.id
if (!tenantId)
throw new GraphQLError(
`Assignment to the specified tenant is not permitted`,
Expand Down

0 comments on commit 1376e62

Please sign in to comment.