Skip to content

Commit c00f6aa

Browse files
authored
Merge pull request #341 from AdExNetwork/issue-337-align-channellist-response
Issue 337 align channellist response
2 parents 72059fa + 9928290 commit c00f6aa

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

primitives/src/sentry.rs

+2
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ pub struct AggregateEvents {
127127
pub struct ChannelListResponse {
128128
pub channels: Vec<Channel>,
129129
pub total_pages: u64,
130+
pub total: u64,
131+
pub page: u64,
130132
}
131133

132134
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq)]

sentry/src/db/channel.rs

+2
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ mod list_channels {
168168

169169
Ok(ChannelListResponse {
170170
total_pages,
171+
total: total_pages,
172+
page: skip / limit as u64,
171173
channels,
172174
})
173175
}

0 commit comments

Comments
 (0)