1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

Fix template id type (#1958)

* fix template id type

* remove logs
This commit is contained in:
Bogdan Fazakas 2023-08-29 10:02:45 +03:00 committed by GitHub
parent 6f138031c6
commit b7a28df97e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,10 @@ function getAccessDetailsFromTokenPrice(
// the last valid order should be the last reuse order tx id if there is one // the last valid order should be the last reuse order tx id if there is one
accessDetails.validOrderTx = reusedOrder?.tx || order?.tx accessDetails.validOrderTx = reusedOrder?.tx || order?.tx
} }
accessDetails.templateId = tokenPrice.templateId accessDetails.templateId =
typeof tokenPrice.templateId === 'string'
? parseInt(tokenPrice.templateId)
: tokenPrice.templateId
// TODO: fetch order fee from sub query // TODO: fetch order fee from sub query
accessDetails.publisherMarketOrderFee = tokenPrice?.publishMarketFeeAmount accessDetails.publisherMarketOrderFee = tokenPrice?.publishMarketFeeAmount