Skip to content

Commit

Permalink
Add missing cmd parameter (#1508)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencohn authored Jul 27, 2024
1 parent d53f73a commit 489b76b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions OneMore/Commands/Tagging/HashtagProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ int Drop(string type, IEnumerable<string> 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)
Expand Down
2 changes: 1 addition & 1 deletion OneMore/Commands/Tagging/HashtagScanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 489b76b

Please sign in to comment.