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)