diff --git a/module.json b/module.json index 7ebdef8..ebf865f 100644 --- a/module.json +++ b/module.json @@ -6,7 +6,7 @@ "authors": [ { "name": "Robin Riis" } ], - "version": "0.1.28", + "version": "0.1.29", "socket": true, "minimumCoreVersion": 10, "compatibility": { diff --git a/scripts/puckoapi/puckoapi.js b/scripts/puckoapi/puckoapi.js index a64622f..5115b5a 100644 --- a/scripts/puckoapi/puckoapi.js +++ b/scripts/puckoapi/puckoapi.js @@ -10,7 +10,7 @@ export class PuckoPruttApi { return await foundry.utils.fetchJsonWithTimeout(this.apiUrl + url) } - async dagens_lunch(spider) { + dagens_lunch(spider) { return this._fetch_json("/spiders/dagens_lunch/" + spider + "/?format=json"); } } \ No newline at end of file diff --git a/scripts/puckochat/commands.js b/scripts/puckochat/commands.js index b3e0ba6..3751451 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 = await game.modules.get("puckoprutt-foundry-module").api.dagens_lunch(message[1]); + let week = game.modules.get("puckoprutt-foundry-module").api.dagens_lunch(message[1]); if (typeof week !== 'object') { return "could not fetch "+message[1]; }