fix(db): return expected rows err for migration logs (#5597)
This commit is contained in:
1 parent
29ab0c3594
commit
70cdd3823c
1 file changed
+1
-1
@@ -475,7 +475,7 @@ func (p *Postgres) GetMigrationLog(ctx context.Context, opt ...log.Option) ([]*l
|
||||
entries = append(entries, e)
|
||||
}
|
||||
if rows.Err() != nil {
|
||||
return nil, errors.Wrap(ctx, err, op)
|
||||
return nil, errors.Wrap(ctx, rows.Err(), op)
|
||||
}
|
||||
opts := log.GetOpts(opt...)
|
||||
if opts.WithDeleteLog {
|
||||
|
||||
Reference in new issue
Block a user