updated to version 0.1.19
This commit is contained in:
parent
a5ac5cde0e
commit
0cfb7c5fe7
@ -6,7 +6,7 @@
|
||||
"authors": [
|
||||
{ "name": "Robin Riis" }
|
||||
],
|
||||
"version": "0.1.18",
|
||||
"version": "0.1.19",
|
||||
"socket": true,
|
||||
"minimumCoreVersion": 10,
|
||||
"compatibility": {
|
||||
|
||||
@ -11,7 +11,8 @@ export class PuckoPruttApi {
|
||||
if (!response.ok) {
|
||||
return -1;
|
||||
}
|
||||
return await response.json();
|
||||
const json = await response.json();
|
||||
return json;
|
||||
}
|
||||
|
||||
dagens_lunch(spider) {
|
||||
|
||||
@ -3,7 +3,7 @@ function test(user) {
|
||||
}
|
||||
|
||||
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];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user