mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 07:41:02 +08:00
Thanks coderabbit, you broke my code!
This commit is contained in:
parent
17778b6e2e
commit
9e921980ed
@ -1,5 +1,4 @@
|
||||
import currentVersion from "~/versionTag";
|
||||
export default async function newestVersion() {
|
||||
export default async function newestVersion() {
|
||||
const current = currentVersion();
|
||||
const req = await fetch("/api/version");
|
||||
@ -11,4 +10,3 @@ export default async function newestVersion() {
|
||||
const { version: latest } = await req.json();
|
||||
return current === latest; // `true` ➜ up-to-date
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user