Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit bff664f

Browse files
committed
fix: dbhelper delete record no parameter
1 parent af9ab2a commit bff664f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ClipboardR.Core/DbHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public async void DeleteOneRecord(ClipboardData clipboardData)
113113
{
114114
var dataMd5 = clipboardData.DataToString().GetMd5();
115115
var sql = "SELECT COUNT() FROM record WHERE data_md5=@DataMd5;";
116-
var count = await Connection.QueryFirstAsync<int>(sql);
116+
var count = await Connection.QueryFirstAsync<int>(sql, new {DataMd5=dataMd5});
117117
// count > 1 means there are more than one record in table `record`
118118
// depends on corresponding record in table `assets`, in this condition,
119119
// we only delete record in table `record`

0 commit comments

Comments
 (0)