Skip to content

Commit

Permalink
actions: add mongodb service
Browse files Browse the repository at this point in the history
  • Loading branch information
jaipaljadeja committed Dec 19, 2024
1 parent 7d040ad commit 5974cbd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ jobs:
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: '7.0'
mongodb-replica-set: rs0
mongodb-port: 27017
- name: Install dependencies
run: pnpm install --strict-peer-dependencies=false
- name: Run lint
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "indexer: rename drizzle sink factory and fix update method",
"packageName": "@apibara/indexer",
"email": "[email protected]",
"dependentChangeType": "patch"
}
5 changes: 0 additions & 5 deletions packages/sink-mongo/src/mongo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export class MongoSink extends Sink {
db: new MongoSinkTransactionDb(db, session, endCursor),
session,
});
return "Transaction committed.";
}),
);
}
Expand All @@ -54,8 +53,6 @@ export class MongoSink extends Sink {
{ session },
);
}

return "Transaction committed.";
}),
);
}
Expand Down Expand Up @@ -90,8 +87,6 @@ export class MongoSink extends Sink {
{ session },
);
}

return "Transaction committed.";
}),
);
}
Expand Down

0 comments on commit 5974cbd

Please sign in to comment.