opensourceBIM / BIMserver-JavaScript-API

BIMserver JavaScript API
GNU Lesser General Public License v3.0
56 stars 35 forks source link

Model.load missing query param #28

Open GiacomoManzoli opened 5 years ago

GiacomoManzoli commented 5 years ago

I've tried to use the Model but i've notice that if i call the load method:

const poid = project.oid;
const roid = project.lastRevisionId;
const schema = project.schema;

return new Promise((resolve, reject) => {
     client.getModel(poid, roid, schema, true, (loadedModel) => { 
          console.log("Model loaded!");                   
          resolve(loadedModel) 
     },'Test');
});

my callback functions doesn't get called and the BIMServer (v1.5.124) logs this error

18:27:19 ERROR [qtp1492822331-42]: Missing parameter: download -> query        

and looking at the source the param is missing. What should be the effect of the load method? To execute a standard pre-load query or it should take the query as a parameter? https://github.com/opensourceBIM/BIMserver-JavaScript-API/blob/584ba60e71fe32a470109883daff5c96c05bb99b/model.js#L40-L44