From d1054a232a754bd48a2b267cd9dc95d0a439cc75 Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Fri, 3 May 2024 22:19:53 +0800 Subject: [PATCH] Update AppConfig.cs --- MyApp.ServiceInterface/Data/AppConfig.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MyApp.ServiceInterface/Data/AppConfig.cs b/MyApp.ServiceInterface/Data/AppConfig.cs index 47d0f55..32c1768 100644 --- a/MyApp.ServiceInterface/Data/AppConfig.cs +++ b/MyApp.ServiceInterface/Data/AppConfig.cs @@ -162,7 +162,7 @@ public void UpdateUsersQuestions(IDbConnection db) public void ResetInitialPostId(IDbConnection db) { var maxPostId = db.Scalar("SELECT MAX(Id) FROM Post"); - SetInitialPostId(Math.Max(100_000_000, maxPostId)); + SetInitialPostId(Math.Max(100_000_000, maxPostId + 1)); } public void ResetUsersReputation(IDbConnection db)