From dcb7f198210e802275364eb5aa14823a74e9a577 Mon Sep 17 00:00:00 2001 From: Savorboard Date: Fri, 13 Dec 2019 15:19:29 +0800 Subject: [PATCH] Fix datastorage bug --- src/DotNetCore.CAP.MySql/IDataStorage.MySql.cs | 2 +- src/DotNetCore.CAP.SqlServer/IDataStorage.SqlServer.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DotNetCore.CAP.MySql/IDataStorage.MySql.cs b/src/DotNetCore.CAP.MySql/IDataStorage.MySql.cs index 399e17e..2ed1c97 100644 --- a/src/DotNetCore.CAP.MySql/IDataStorage.MySql.cs +++ b/src/DotNetCore.CAP.MySql/IDataStorage.MySql.cs @@ -86,7 +86,7 @@ namespace DotNetCore.CAP.MySql message.Retries, message.Added, message.ExpiresAt, - StatusName = StatusName.Scheduled + StatusName = nameof(StatusName.Scheduled) }; if (dbTransaction == null) diff --git a/src/DotNetCore.CAP.SqlServer/IDataStorage.SqlServer.cs b/src/DotNetCore.CAP.SqlServer/IDataStorage.SqlServer.cs index 853bb4c..7df2ea9 100644 --- a/src/DotNetCore.CAP.SqlServer/IDataStorage.SqlServer.cs +++ b/src/DotNetCore.CAP.SqlServer/IDataStorage.SqlServer.cs @@ -89,7 +89,7 @@ namespace DotNetCore.CAP.SqlServer message.Retries, message.Added, message.ExpiresAt, - StatusName = StatusName.Scheduled + StatusName = nameof(StatusName.Scheduled) }; if (dbTransaction == null)