Skip to content

Commit

Permalink
Fix: last operation query
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Jul 17, 2023
1 parent f1527f7 commit 68b544e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/postgres/operation/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (storage *Storage) GetByAccount(acc account.Account, size uint64, filters m
// Last - get last operation by `filters` with not empty deffated_storage
func (storage *Storage) Last(filters map[string]interface{}, lastID int64) (operation.Operation, error) {
var (
current = time.Date(time.Now().Year(), 1, 1, 0, 0, 0, 0, time.UTC)
current = time.Now()
endTime = consts.BeginningOfTime
)

Expand Down

0 comments on commit 68b544e

Please sign in to comment.