updated to version 0.1.19

This commit is contained in:
KungKurt 2025-02-23 18:43:50 +01:00
parent a5ac5cde0e
commit 0cfb7c5fe7
3 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@
"authors": [ "authors": [
{ "name": "Robin Riis" } { "name": "Robin Riis" }
], ],
"version": "0.1.18", "version": "0.1.19",
"socket": true, "socket": true,
"minimumCoreVersion": 10, "minimumCoreVersion": 10,
"compatibility": { "compatibility": {

View File

@ -11,7 +11,8 @@ export class PuckoPruttApi {
if (!response.ok) { if (!response.ok) {
return -1; return -1;
} }
return await response.json(); const json = await response.json();
return json;
} }
dagens_lunch(spider) { dagens_lunch(spider) {

View File

@ -3,7 +3,7 @@ function test(user) {
} }
function dagens(user, message) { 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') { if (typeof week !== 'object') {
return "could not fetch "+message[1]; return "could not fetch "+message[1];
} }