mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2025-07-12 22:03:29 +02:00
fix some minor bugs
This commit is contained in:
@ -148,7 +148,7 @@ class AntOSDKBaseJob {
|
||||
req.send(JSON.stringify(data));
|
||||
});
|
||||
}
|
||||
read_files(files)
|
||||
read_files(files, type)
|
||||
{
|
||||
return new Promise( async (resolve, reject) => {
|
||||
try{
|
||||
@ -161,7 +161,7 @@ class AntOSDKBaseJob {
|
||||
promises = [];
|
||||
for(let file of files)
|
||||
{
|
||||
promises.push(this.get(file.getlink(this.job.root)));
|
||||
promises.push(this.get(file.getlink(this.job.root), type));
|
||||
}
|
||||
const contents = await Promise.all(promises);
|
||||
resolve(contents);
|
||||
|
Reference in New Issue
Block a user