fix: preserve server startedAt from wrapper status
This commit is contained in:
@@ -26,7 +26,7 @@ export function registerRoutes(server: { on: (event: string, listener: (...args:
|
||||
}
|
||||
|
||||
if (pathname.startsWith("/api/wrappers/")) {
|
||||
const id = pathname.split("/").pop() ?? "";
|
||||
const id = decodeURIComponent(pathname.split("/").pop() ?? "");
|
||||
const wrapper = api.getWrapper(id);
|
||||
|
||||
if (!wrapper) {
|
||||
@@ -47,7 +47,7 @@ export function registerRoutes(server: { on: (event: string, listener: (...args:
|
||||
}
|
||||
|
||||
if (pathname.startsWith("/api/servers/")) {
|
||||
const id = pathname.split("/").pop() ?? "";
|
||||
const id = decodeURIComponent(pathname.split("/").pop() ?? "");
|
||||
const server = api.getServer(id);
|
||||
|
||||
if (!server) {
|
||||
|
||||
Reference in New Issue
Block a user