Skip to content

Commit

Permalink
Merge pull request #87 from sotatek-dev/fix/crawler-amount-received
Browse files Browse the repository at this point in the history
fix: get user history
  • Loading branch information
Sotatek-TanHoang authored Sep 25, 2024
2 parents b58540d + 83cfa9e commit 3392d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/repositories/event-log.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class EventLogRepository extends BaseRepository<EventLog> {
public async getHistoriesOfUser(address: string, options) {
const queryBuilder = this.createQb();
queryBuilder
.where(`${this.alias}.sender_address = :address`, { address })
.where(`${this.alias}.sender_address = :address OR ${this.alias}.receive_address = :address`, { address })
.orderBy(`${this.alias}.id`, EDirection.DESC)
.select([
`${this.alias}.id`,
Expand Down

0 comments on commit 3392d08

Please sign in to comment.