Skip to content

Commit

Permalink
fix: Search process without Module
Browse files Browse the repository at this point in the history
  • Loading branch information
pawanpaudel93 committed Apr 16, 2024
1 parent 0e399b1 commit 9259d48
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/lib/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ async function getAos() {
}
}

async function findProcess(name: string, aosModule: string, owner: string) {
async function findProcess(name: string, owner: string) {
const tx = await ardb
.appName('aos')
.search('transactions')
Expand All @@ -133,14 +133,6 @@ async function findProcess(name: string, aosModule: string, owner: string) {
.tags([
{ name: 'Data-Protocol', values: ['ao'] },
{ name: 'Type', values: ['Process'] },
{
name: 'Module',
values: [
aosModule,
'1SafZGlZT4TLI8xoc0QEQ4MylHhuyQUblxD8xLKvEKI',
'9afQ1PLf2mrshqCTZEzzJTR2gWaC9zNPnYgYEqg1Pt4',
],
},
{ name: 'Name', values: [name] },
])
.findOne()
Expand All @@ -161,7 +153,7 @@ export async function deployContract({ name, wallet, contractPath, tags, cron, m
const owner = await getWalletAddress(walletJWK)
const signer = createDataItemSigner(walletJWK)

let processId = await findProcess(name, module, owner)
let processId = await findProcess(name, owner)

if (!processId) {
tags = Array.isArray(tags) ? tags : []
Expand Down

0 comments on commit 9259d48

Please sign in to comment.