1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

Merge pull request #282 from oceanprotocol/bug/fix_history

fix history
This commit is contained in:
Alex Coseru 2020-05-19 19:59:20 +03:00 committed by GitHub
commit 197d3a950d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)