This commit is contained in:
parent
36f9cef351
commit
37b42ecc44
|
@ -319,7 +319,7 @@ func (m *Mongo) GetZoneVasByIds(ctx context.Context, zids []int64) ([]*dbstruct.
|
|||
"$in": zids,
|
||||
},
|
||||
}
|
||||
err := col.Find(ctx, query).One(&list)
|
||||
err := col.Find(ctx, query).All(&list)
|
||||
if err == qmgo.ErrNoSuchDocuments {
|
||||
err = nil
|
||||
return nil, nil
|
||||
|
|
Loading…
Reference in New Issue