mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
14 lines
358 B
TypeScript
14 lines
358 B
TypeScript
import { Account } from '@oceanprotocol/squid'
|
|
|
|
export async function getUserJobs(ocean: any, account: string) {
|
|
try {
|
|
const account = await ocean.accounts.list()
|
|
|
|
await account.authenticate()
|
|
const jobList = await ocean.compute.status(account[0])
|
|
return jobList
|
|
} catch (error) {
|
|
console.error(error)
|
|
}
|
|
}
|