diff --git a/src/datalayer/persistance.js b/src/datalayer/persistance.js index 1fb71ac9..9cd26aee 100644 --- a/src/datalayer/persistance.js +++ b/src/datalayer/persistance.js @@ -552,6 +552,8 @@ const verifyOffer = async (offer) => { const data = JSON.parse(response); + console.log(data); + if (data.success) { return true; } diff --git a/src/models/staging/staging.model.js b/src/models/staging/staging.model.js index 0cac7cf6..e75ac493 100644 --- a/src/models/staging/staging.model.js +++ b/src/models/staging/staging.model.js @@ -223,7 +223,7 @@ class Staging extends Model { metaValue: offerResponse.offer.trade_id, }); - return { offer: offerResponse.offer }; + return _.pick('offer', 'fee'); } catch (error) { throw new Error(error.message); }