From 8831c46e397221542d30e6c594be8844b4869012 Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Tue, 19 May 2020 09:23:38 -0700 Subject: [PATCH 1/2] fix history --- client/src/utils/getUserJobs.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/utils/getUserJobs.ts b/client/src/utils/getUserJobs.ts index 9e017ff..7798f75 100644 --- a/client/src/utils/getUserJobs.ts +++ b/client/src/utils/getUserJobs.ts @@ -2,10 +2,11 @@ import { Account } from '@oceanprotocol/squid' export async function getUserJobs(ocean: any, account: string) { try { - const account = await ocean.accounts.list() + const accounts = await ocean.accounts.list() + const account=accounts[0] await account.authenticate() - const jobList = await ocean.compute.status(account[0]) + const jobList = await ocean.compute.status(account) return jobList } catch (error) { console.error(error) From bbeef61afd43552318beba3bc87133705c039aa6 Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Tue, 19 May 2020 09:25:10 -0700 Subject: [PATCH 2/2] fix history --- client/src/utils/getUserJobs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/utils/getUserJobs.ts b/client/src/utils/getUserJobs.ts index 7798f75..d82fd45 100644 --- a/client/src/utils/getUserJobs.ts +++ b/client/src/utils/getUserJobs.ts @@ -3,7 +3,7 @@ import { Account } from '@oceanprotocol/squid' export async function getUserJobs(ocean: any, account: string) { try { const accounts = await ocean.accounts.list() - const account=accounts[0] + const account = accounts[0] await account.authenticate() const jobList = await ocean.compute.status(account)