1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
This commit is contained in:
mihaisc 2020-10-23 18:56:04 +03:00
parent ec28ef546c
commit ebc1e22d88
No known key found for this signature in database
GPG Key ID: 4FB0C2329B4C6E29

View File

@ -7,11 +7,12 @@ export default async function checkPreviousOrder(
serviceType: ServiceType
) {
const service = ddo.findServiceByType(serviceType)
// apparenlty cost and timeout are not found, even though they are there...
const previousOrder = await ocean.datatokens.getPreviousValidOrders(
ddo.dataToken,
service.attributes.main.cost,
(service.attributes.main as any).cost,
service.index,
service.attributes.main.timeout,
(service.attributes.main as any).timeout,
accountId
)
return previousOrder