mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 02:26:26 +05:00
mongo version fix
This commit is contained in:
@@ -1379,7 +1379,7 @@ func (ms *MongoStorage) GetStructVersion() (rsv *StructVersion, err error) {
|
||||
Value StructVersion
|
||||
}
|
||||
|
||||
err = ms.db.C(colVer).Find(bson.M{"key": utils.VERSION_PREFIX + "struct"}).One(result)
|
||||
err = ms.db.C(colVer).Find(bson.M{"key": utils.VERSION_PREFIX + "struct"}).One(&result)
|
||||
if err == mgo.ErrNotFound {
|
||||
rsv = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user