File tree 1 file changed +2
-8
lines changed
packages/plugin-bootstrap/src/evaluators
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,6 @@ async function handler(
55
55
state : State | undefined ,
56
56
options : { [ key : string ] : unknown } = { onlyInProgress : true }
57
57
) : Promise < Goal [ ] > {
58
- // get goals
59
- let goalsData = await getGoals ( {
60
- runtime,
61
- roomId : message . roomId ,
62
- onlyInProgress : options . onlyInProgress as boolean ,
63
- } ) ;
64
58
65
59
state = ( await runtime . composeState ( message ) ) as State ;
66
60
const context = composeContext ( {
@@ -79,10 +73,10 @@ async function handler(
79
73
const updates = parseJsonArrayFromText ( response ) ;
80
74
81
75
// get goals
82
- goalsData = await getGoals ( {
76
+ const goalsData = await getGoals ( {
83
77
runtime,
84
78
roomId : message . roomId ,
85
- onlyInProgress : true ,
79
+ onlyInProgress : options . onlyInProgress as boolean ,
86
80
} ) ;
87
81
88
82
// Apply the updates to the goals
You can’t perform that action at this time.
0 commit comments