Skip to content

Commit

Permalink
Merge pull request #1379 from Oneirocom/fix-reversion
Browse files Browse the repository at this point in the history
Fix reversion
  • Loading branch information
parzival418 authored Nov 2, 2023
2 parents 122f8b0 + ebff932 commit 26fcd15
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,15 @@ const formatRequest = async (
params: any
): Promise<Request> => {
const {
spellId,
sessionId,
content,
isCloud = false,
secrets = {},
publicVariables = {},
sender = 'api',
client = 'rest',
channel = 'rest',
sessionId,
} = data

// validate if method is GET, POST, PATCH, DELETE
Expand Down Expand Up @@ -150,7 +151,7 @@ const formatRequest = async (
return {
agent,
agentId: agent.id,
spellId: agent.rootSpellId as string,
spellId: spellId || (agent.rootSpellId as string),
sessionId: sessionId,
inputs: {
[`Input - REST API (${method})`]: {
Expand Down

0 comments on commit 26fcd15

Please sign in to comment.