fix: use snapshot version for dev

This commit is contained in:
ReaJason
2025-04-06 13:55:17 +08:00
parent ffd2a636f4
commit f57ee7536c
3 changed files with 7 additions and 7 deletions
@@ -36,7 +36,7 @@ public class VersionController {
@GetMapping
public VersionInfo version() {
if ("dev".equals(version)) {
if (version.endsWith("-SNAPSHOT")) {
return VersionInfo.builder()
.currentVersion(version)
.latestVersion(version).build();