Skip to content

Commit

Permalink
Remove constrain to require spellid on format request
Browse files Browse the repository at this point in the history
  • Loading branch information
parzival418 committed Oct 22, 2023
1 parent 2edee9b commit 1a16e75
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const getAgent = async (

type Request = {
agent: Agent
spellId: string
spellId?: string
inputs: {
[key: string]: {
connector: string
Expand Down Expand Up @@ -118,10 +118,6 @@ const formatRequest = async (
channel = 'rest',
} = data

if (!spellId) {
throw new BadRequest('Spell ID is required')
}

// validate if method is GET, POST, PATCH, DELETE

const validMethods = ['GET', 'POST', 'PATCH', 'DELETE']
Expand Down

0 comments on commit 1a16e75

Please sign in to comment.