From ff38ad761a321651f68328fa7d592bd9d5c3c0eb Mon Sep 17 00:00:00 2001 From: KungKurt Date: Sun, 23 Feb 2025 18:49:22 +0100 Subject: [PATCH] updated to version 0.1.21 --- module.json | 2 +- scripts/puckoapi/puckoapi.js | 2 +- scripts/puckochat/commands.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module.json b/module.json index 7dd24f3..3edf1e6 100644 --- a/module.json +++ b/module.json @@ -6,7 +6,7 @@ "authors": [ { "name": "Robin Riis" } ], - "version": "0.1.20", + "version": "0.1.21", "socket": true, "minimumCoreVersion": 10, "compatibility": { diff --git a/scripts/puckoapi/puckoapi.js b/scripts/puckoapi/puckoapi.js index 28b6505..6496f3c 100644 --- a/scripts/puckoapi/puckoapi.js +++ b/scripts/puckoapi/puckoapi.js @@ -16,6 +16,6 @@ export class PuckoPruttApi { } async dagens_lunch(spider) { - return this._fetch_json(this.apiUrl + "/dagens_lunch/" + spider + "/?format=json"); + return await this._fetch_json(this.apiUrl + "/dagens_lunch/" + spider + "/?format=json"); } } \ No newline at end of file diff --git a/scripts/puckochat/commands.js b/scripts/puckochat/commands.js index 7611727..e947bfc 100644 --- a/scripts/puckochat/commands.js +++ b/scripts/puckochat/commands.js @@ -3,7 +3,7 @@ async function test(user) { } async function dagens(user, message) { - let week = game.modules.get("puckoprutt-foundry-module").api.dagens_lunch(message[1]); + let week = await game.modules.get("puckoprutt-foundry-module").api.dagens_lunch(message[1]); if (typeof week !== 'object') { return "could not fetch "+message[1]; }