Skip to content

Commit

Permalink
Merge pull request #153 from singnet/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
TerNik authored Nov 18, 2024
2 parents e7d8485 + 9607787 commit 569a070
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
29 changes: 14 additions & 15 deletions packages/core/src/BaseServiceClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,24 +207,23 @@ class BaseServiceClient {
return new Promise((resolve, reject) => {
this._modelServiceClient.create_model(request, (err, response) => {
logger.debug(`create model ${err} ${response}`);
const modelDetails = response.getModelDetails();

const data = {
modelId: modelDetails.getModelId(),
methodName: modelDetails.getGrpcMethodName(),
serviceName: modelDetails.getGrpcServiceName(),
description: modelDetails.getDescription(),
status: modelDetails.getStatus(),
updatedDate: modelDetails.getUpdatedDate(),
addressList: modelDetails.getAddressListList(),
modelName: modelDetails.getModelName(),
publicAccess: modelDetails.getIsPubliclyAccessible(),
dataLink: modelDetails.getTrainingDataLink(),
};

if (err) {
reject(err);
} else {
const modelDetails = response.getModelDetails();

const data = {
modelId: modelDetails.getModelId(),
methodName: modelDetails.getGrpcMethodName(),
serviceName: modelDetails.getGrpcServiceName(),
description: modelDetails.getDescription(),
status: modelDetails.getStatus(),
updatedDate: modelDetails.getUpdatedDate(),
addressList: modelDetails.getAddressListList(),
modelName: modelDetails.getModelName(),
publicAccess: modelDetails.getIsPubliclyAccessible(),
dataLink: modelDetails.getTrainingDataLink(),
};
resolve(data);
}
});
Expand Down
4 changes: 2 additions & 2 deletions packages/web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "snet-sdk-web",
"version": "4.0.2",
"version": "4.0.3",
"description": "SingularityNET SDK for Web",
"main": "./dist/index.js",
"files": [
Expand Down

0 comments on commit 569a070

Please sign in to comment.