From be67fa1340b6da252d8ce9e275e16dc511ceff75 Mon Sep 17 00:00:00 2001 From: Ogoun Date: Sun, 2 Feb 2020 05:39:51 +0300 Subject: [PATCH] Update UserCacheRepository.cs --- ZeroLevel.SqLite/UserCacheRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZeroLevel.SqLite/UserCacheRepository.cs b/ZeroLevel.SqLite/UserCacheRepository.cs index 55716b8..a1dd7a9 100644 --- a/ZeroLevel.SqLite/UserCacheRepository.cs +++ b/ZeroLevel.SqLite/UserCacheRepository.cs @@ -70,7 +70,7 @@ namespace ZeroLevel.SqLite var body = MessageSerializer.Serialize(data); if (update) { - Execute($"UPDATE {_tableName} SET key=@key, body=@body", _db, + Execute($"UPDATE {_tableName} SET body=@body WHERE key=@key", _db, new SQLiteParameter[] { new SQLiteParameter("key", key),