Run check.sh

This commit is contained in:
Andras Schmelczer 2025-11-23 20:31:01 +00:00
parent 18be9f4dd8
commit 7008c54e2e
4 changed files with 653 additions and 6 deletions

View file

@ -9,9 +9,9 @@ pub async fn find_first_available_path(
transaction: &mut Transaction<'_>,
) -> Result<String> {
let mut new_relative_path = String::default();
for candidate in dedup_paths(&sanitized_relative_path) {
for candidate in dedup_paths(sanitized_relative_path) {
if database
.get_latest_document_by_path(&vault_id, &candidate, Some(transaction))
.get_latest_document_by_path(vault_id, &candidate, Some(transaction))
.await?
.is_none()
{