Switching setVariable to a query and fixing error hangling in query mechanism

This commit is contained in:
David Négrier 2021-07-05 18:29:34 +02:00
parent c30de8c6db
commit bf17ad4567
6 changed files with 49 additions and 43 deletions

View file

@ -119,9 +119,9 @@ export class WorkadventureRoomCommands extends IframeApiContribution<Workadventu
});
}
saveVariable(key : string, value : unknown): void {
saveVariable(key : string, value : unknown): Promise<void> {
variables.set(key, value);
sendToWorkadventure({
return queryWorkadventure({
type: 'setVariable',
data: {
key,