Skip to content

Commit

Permalink
Update AppConfig.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed May 3, 2024
1 parent a4f0fbc commit d1054a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MyApp.ServiceInterface/Data/AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public void UpdateUsersQuestions(IDbConnection db)
public void ResetInitialPostId(IDbConnection db)
{
var maxPostId = db.Scalar<int>("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)
Expand Down

0 comments on commit d1054a2

Please sign in to comment.