From 8a43af0be7580b915fb92af1b6c03bd283bdfa54 Mon Sep 17 00:00:00 2001 From: Terry Mancey Date: Thu, 28 Feb 2019 20:26:50 +0000 Subject: [PATCH] Resolved Ads Campaign ID, Daily Cap, Per Day and Total Max use incorrect database fields --- components/brave_ads/browser/bundle_state_database.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/brave_ads/browser/bundle_state_database.cc b/components/brave_ads/browser/bundle_state_database.cc index 3877c90b64e7..86098a3af383 100644 --- a/components/brave_ads/browser/bundle_state_database.cc +++ b/components/brave_ads/browser/bundle_state_database.cc @@ -365,10 +365,10 @@ bool BundleStateDatabase::GetAdsForCategory(const std::string& region, info.start_timestamp = info_sql.ColumnString(4); info.end_timestamp = info_sql.ColumnString(5); info.uuid = info_sql.ColumnString(6); - info.campaign_id = info_sql.ColumnString(7); - info.daily_cap = info_sql.ColumnInt(8); - info.per_day = info_sql.ColumnInt(9); - info.total_max = info_sql.ColumnInt(10); + info.campaign_id = info_sql.ColumnString(8); + info.daily_cap = info_sql.ColumnInt(9); + info.per_day = info_sql.ColumnInt(10); + info.total_max = info_sql.ColumnInt(11); ads.emplace_back(info); }