mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Compare GetStorageType() output to the correct constant
This commit is contained in:
committed by
Dan Christian Bogos
parent
475a239401
commit
d69f08890b
@@ -1021,7 +1021,7 @@ func (dm *DataManager) GetStatQueue(tenant, id string,
|
||||
config.CgrConfig().GeneralCfg().NodeID)),
|
||||
}, &sq); err == nil {
|
||||
var ssq *StoredStatQueue
|
||||
if dm.dataDB.GetStorageType() != utils.MetaInternal {
|
||||
if dm.dataDB.GetStorageType() != utils.Internal {
|
||||
// in case of internal we don't marshal
|
||||
if ssq, err = NewStoredStatQueue(sq, dm.ms); err != nil {
|
||||
return nil, err
|
||||
@@ -1056,7 +1056,7 @@ func (dm *DataManager) SetStatQueue(sq *StatQueue) (err error) {
|
||||
return utils.ErrNoDatabaseConn
|
||||
}
|
||||
var ssq *StoredStatQueue
|
||||
if dm.dataDB.GetStorageType() != utils.MetaInternal {
|
||||
if dm.dataDB.GetStorageType() != utils.Internal {
|
||||
// in case of internal we don't marshal
|
||||
if ssq, err = NewStoredStatQueue(sq, dm.ms); err != nil {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user