Skip to content

Commit

Permalink
Merge branch 'develop' into cleanstart
Browse files Browse the repository at this point in the history
  • Loading branch information
shakkernerd authored Dec 25, 2024
2 parents 47d2adf + 8a10afb commit a23ea1f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/plugin-bootstrap/src/evaluators/goal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@ async function handler(
state: State | undefined,
options: { [key: string]: unknown } = { onlyInProgress: true }
): Promise<Goal[]> {
// get goals
let goalsData = await getGoals({
runtime,
roomId: message.roomId,
onlyInProgress: options.onlyInProgress as boolean,
});

state = (await runtime.composeState(message)) as State;
const context = composeContext({
Expand All @@ -79,10 +73,10 @@ async function handler(
const updates = parseJsonArrayFromText(response);

// get goals
goalsData = await getGoals({
const goalsData = await getGoals({
runtime,
roomId: message.roomId,
onlyInProgress: true,
onlyInProgress: options.onlyInProgress as boolean,
});

// Apply the updates to the goals
Expand Down

0 comments on commit a23ea1f

Please sign in to comment.