From 489b76b68a0fb5e973d99aa0f4d17a6277ecaef2 Mon Sep 17 00:00:00 2001 From: Steven Date: Sat, 27 Jul 2024 08:04:22 -0400 Subject: [PATCH] Add missing cmd parameter (#1508) #1507 --- OneMore/Commands/Tagging/HashtagProvider.cs | 1 + OneMore/Commands/Tagging/HashtagScanner.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/OneMore/Commands/Tagging/HashtagProvider.cs b/OneMore/Commands/Tagging/HashtagProvider.cs index f53135db7f..8a0e20c54d 100644 --- a/OneMore/Commands/Tagging/HashtagProvider.cs +++ b/OneMore/Commands/Tagging/HashtagProvider.cs @@ -89,6 +89,7 @@ int Drop(string type, IEnumerable names) using var cmd = con.CreateCommand(); cmd.CommandText = $"DROP {type} IF EXISTS @n"; cmd.CommandType = CommandType.Text; + cmd.Parameters.Add("@n", DbType.String); var count = 0; foreach (var name in names) diff --git a/OneMore/Commands/Tagging/HashtagScanner.cs b/OneMore/Commands/Tagging/HashtagScanner.cs index 3cebdef0b2..6ac862bca4 100644 --- a/OneMore/Commands/Tagging/HashtagScanner.cs +++ b/OneMore/Commands/Tagging/HashtagScanner.cs @@ -178,7 +178,7 @@ public void Dispose() int tp; (dp, tp) = await Scan( one, sections, notebookID, $"/{name}", - known.LastModified == string.Empty); + known?.LastModified == string.Empty); dirtyPages += dp; totalPages += tp;