You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@
6
6
* Add different file size limits for pictures (avatar/logo - 20k) and documents (invoices, registration, passport - 1mb) as well as an upper limit for bill files (100)
7
7
* This limit is checked at creation/update time, not at the time of uploading a temporary file
8
8
* Add the address of the signer for the calls to `endorsements` and `past_endorsees`
9
+
* Add api call `active_notifications_for_node_ids` on `notification` API, which returns for a set of node ids, whether they have active notifications
10
+
* If the set of node ids is empty, only the node ids that have active notifications are returned
/// Returns node ids with an active notification for the given node ids
44
+
asyncfnget_active_status_for_node_ids(
45
+
&self,
46
+
node_ids:&[NodeId],
47
+
) -> Result<HashMap<NodeId,bool>>{
48
+
letmut bindings = Bindings::default();
49
+
bindings.add("table",Self::TABLE)?;
50
+
bindings.add("node_ids", node_ids.to_owned())?;
51
+
52
+
let node_id_filter = if node_ids.is_empty(){
53
+
""
54
+
}else{
55
+
"and node_id in $node_ids"
56
+
};
57
+
58
+
let result:Vec<NodeIdDb> = self.db.query(&format!("SELECT node_id from notifications where active = true {node_id_filter} GROUP BY node_id"), bindings).await?;
0 commit comments