fix(core): update

This commit is contained in:
2023-11-24 19:28:59 +01:00
parent d3c26d0d46
commit f5c106b2ca
2 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ export class SmartFile extends plugins.smartjson.Smartjson {
});
}
public async fromUrl (urlArg: string) {
public static async fromUrl (urlArg: string) {
const response = await plugins.smartrequest.getBinary(urlArg);
const smartfile = await SmartFile.fromBuffer(urlArg, response.body);
return smartfile;