Skip to content

Commit

Permalink
feat(api): support subscription update
Browse files Browse the repository at this point in the history
  • Loading branch information
ymgyt committed Apr 13, 2024
1 parent 324d599 commit 510106b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/synd_api/src/repository/kvsd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ impl SubscriptionRepository for KvsdClient {
let feeds = if let Some(mut feeds) =
Self::get::<SubscribedFeeds>(&mut client, key.clone()).await?
{
feeds.urls.insert(0, feed.url.clone());
// Create case
if !feeds.urls.contains(&feed.url) {
feeds.urls.insert(0, feed.url.clone());
};
if feeds.annotations.is_none() {
feeds.annotations = Some(HashMap::new());
};
Expand Down

0 comments on commit 510106b

Please sign in to comment.