updated to version 0.1.21
This commit is contained in:
parent
9a2ac43ba5
commit
ff38ad761a
@ -6,7 +6,7 @@
|
||||
"authors": [
|
||||
{ "name": "Robin Riis" }
|
||||
],
|
||||
"version": "0.1.20",
|
||||
"version": "0.1.21",
|
||||
"socket": true,
|
||||
"minimumCoreVersion": 10,
|
||||
"compatibility": {
|
||||
|
||||
@ -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");
|
||||
}
|
||||
}
|
||||
@ -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];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user