Danny
Danny8mo ago

setVariable not doing what it's supposed to?

I might be misunderstanding something, but.. I've created a variable. 'f/sandbox/token'. It's not encrypted. I put a value 'test'. Then in a script I'm doing:
import { setVariable } from "npm:windmill-client@1.290.1"

export async function main(newToken: string) {
setVariable('f/sandbox/token', newToken);
}
import { setVariable } from "npm:windmill-client@1.290.1"

export async function main(newToken: string) {
setVariable('f/sandbox/token', newToken);
}
I am expecting the variable in the dashboard to now show me the newToken after run, but I still see 'test', nothing changed. Am I missing something obvious?
1 Reply
Danny
DannyOP8mo ago
My issue was not returning or calling await on setVariable. It is now resolved