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
1 changed files with 4 additions and 1 deletions

View File

@ -111,7 +111,10 @@ function getAccessDetailsFromTokenPrice(
// the last valid order should be the last reuse order tx id if there is one
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
accessDetails.publisherMarketOrderFee = tokenPrice?.publishMarketFeeAmount