Skip to content

Commit df43455

Browse files
author
Krishna Prasad ADHIKARI
authored
Merge pull request #3897 from hove-io/fix_channel_types_in_a_channel
Fix channel type list in a channel
2 parents af69676 + c06b20a commit df43455

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/kraken/fill_disruption_from_database.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ struct DisruptionDatabaseReader {
196196
fill_channel(const_it, channel);
197197
message_ids.insert(const_it["message_id"].template as<std::string>());
198198
}
199-
if (impact && channel && (last_channel_type_id != const_it["channel_type_id"].template as<std::string>())) {
199+
if (impact && channel && (channel->id() == const_it["channel_id"].template as<std::string>())
200+
&& (last_channel_type_id != const_it["channel_type_id"].template as<std::string>())) {
200201
fill_channel_type(const_it, channel);
201202
last_channel_type_id = const_it["channel_type_id"].template as<std::string>();
202203
}

0 commit comments

Comments
 (0)