Skip to content

Commit

Permalink
Fix project id and remove spell clearing on load spell
Browse files Browse the repository at this point in the history
  • Loading branch information
parzival418 committed Aug 22, 2024
1 parent 4afd62f commit 1b10f41
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion packages/server/agent-service/src/lib/spellbook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,6 @@ export class Spellbook<
)

this.clearAllSpellCasters()
this.spells.clear()

for (const spell of spells) {
this.spells.set(spell.id, spell)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default defineNitroPlugin(async nitroApp => {
} else {
console.log('Existing agent found:', existingAgent.id)
config.agentId = existingAgent.id
config.projectId = existingAgent.projectId || 'default'
config.id = existingAgent.id
}
// // use data and app to create agent
Expand Down

0 comments on commit 1b10f41

Please sign in to comment.