Skip to content

Commit

Permalink
Mark list_databases as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
b3ngg committed Feb 8, 2024
1 parent d4038a9 commit 5f1afc6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ impl NotionApi {
/// List all the databases shared with the supplied integration token.
/// Because of the deprecation of the original endpoint this just calls
/// [search()](Self::search()) with a filter on databases
///
#[deprecated(
note = "This method is deprecated. Please use `search()` with a filter on databases instead."
)]
pub async fn list_databases(&self) -> Result<ListResponse<Database>, Error> {
self.search(NotionSearch::filter_by_databases())
.await
Expand Down

0 comments on commit 5f1afc6

Please sign in to comment.