Compare GetStorageType() output to the correct constant

This commit is contained in:
ionutboangiu
2023-02-28 10:59:55 -05:00
committed by Dan Christian Bogos
parent 475a239401
commit d69f08890b

View File

@@ -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