fix: dev version no update

This commit is contained in:
ReaJason
2025-03-24 16:21:44 +08:00
parent bfcbe21aee
commit 7b1924a97f
2 changed files with 9 additions and 4 deletions
@@ -36,6 +36,11 @@ public class VersionController {
@GetMapping
public VersionInfo version() {
if ("dev".equals(version)) {
return VersionInfo.builder()
.currentVersion(version)
.latestVersion(version).build();
}
String latestVersion = getLatestGithubRelease();
return VersionInfo.builder()
.currentVersion(version)