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
50a2bdc505
commit
db8f2e4826
@@ -515,7 +515,7 @@ func (dm *DataManager) GetStatQueue(tenant, id string,
|
||||
if err = dm.connMgr.Call(config.CgrConfig().DataDbCfg().RmtConns, nil, utils.ReplicatorSv1GetStatQueue,
|
||||
&utils.TenantID{Tenant: tenant, ID: id}, 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
|
||||
@@ -544,7 +544,7 @@ func (dm *DataManager) GetStatQueue(tenant, id string,
|
||||
// SetStatQueue converts to StoredStatQueue and stores the result in dataDB
|
||||
func (dm *DataManager) SetStatQueue(sq *StatQueue) (err error) {
|
||||
var ssq *StoredStatQueue
|
||||
if dm.dataDB.GetStorageType() != utils.MetaInternal ||
|
||||
if dm.dataDB.GetStorageType() != utils.INTERNAL ||
|
||||
config.CgrConfig().DataDbCfg().Items[utils.MetaStatQueues].Replicate {
|
||||
// in case of internal we don't marshal
|
||||
if ssq, err = NewStoredStatQueue(sq, dm.ms); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user