Skip to content

Commit

Permalink
fix: Merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jlacivita committed Jun 6, 2024
1 parent 8949a47 commit d3c7b5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openrpc/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ const run = async ({
mergedOpenRpc = fireboltize(mergedOpenRpc, !!client)

// make sure all provided-by APIs point to a real provider method
const appProvided = openrpc.methods.filter(m => m.tags.find(t=>t['x-provided-by'])) || []
const appProvided = mergedOpenRpc.methods.filter(m => m.tags.find(t=>t['x-provided-by'])) || []
appProvided.forEach(m => {
const providedBy = m.tags.find(t=>t['x-provided-by'])['x-provided-by']
const provider = openrpc.methods.find(m => m.name === providedBy)
const provider = mergedOpenRpc.methods.find(m => m.name === providedBy)
if (!provider) {
throw `Method ${m.name} is provided by an undefined method (${providedBy})`
}
Expand Down

0 comments on commit d3c7b5c

Please sign in to comment.