fix: ensure checkUpgrade sets init: (#5040)

This commit is contained in:
YeonGyu-Kim 2025-12-04 13:28:35 +09:00 committed by GitHub
parent d0a48a09e2
commit 5a9f4e5c60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,7 @@ import { Installation } from "@/installation"
import { Server } from "@/server/server"
import { Log } from "@/util/log"
import { Instance } from "@/project/instance"
import { InstanceBootstrap } from "@/project/bootstrap"
import { Rpc } from "@/util/rpc"
import { upgrade } from "@/cli/upgrade"
@ -43,6 +44,7 @@ export const rpc = {
async checkUpgrade(input: { directory: string }) {
await Instance.provide({
directory: input.directory,
init: InstanceBootstrap,
fn: async () => {
await upgrade().catch(() => {})
},