fix
This commit is contained in:
parent
c80d2a6e0d
commit
88558f4472
|
|
@ -52,7 +52,6 @@ export class Watcher {
|
||||||
) {
|
) {
|
||||||
try {
|
try {
|
||||||
sv.rebuilding = true;
|
sv.rebuilding = true;
|
||||||
console.log("rebuilding srv", id_site);
|
|
||||||
await sv.ctx.rebuild();
|
await sv.ctx.rebuild();
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
console.error(`Srv failed rebuild (site: ${id_site})`);
|
console.error(`Srv failed rebuild (site: ${id_site})`);
|
||||||
|
|
@ -65,13 +64,11 @@ export class Watcher {
|
||||||
if (
|
if (
|
||||||
Array.isArray(message) &&
|
Array.isArray(message) &&
|
||||||
typeof message[1] === "string" &&
|
typeof message[1] === "string" &&
|
||||||
sv.inputs.has(message[1])
|
fe.inputs.has(message[1])
|
||||||
) {
|
) {
|
||||||
fe.rebuilding = true;
|
fe.rebuilding = true;
|
||||||
try {
|
try {
|
||||||
broadcastLoading();
|
broadcastLoading();
|
||||||
console.log("rebuilding fe", id_site);
|
|
||||||
|
|
||||||
await fe.ctx.rebuild();
|
await fe.ctx.rebuild();
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
console.error(`Frontend failed rebuild (site: ${id_site})`);
|
console.error(`Frontend failed rebuild (site: ${id_site})`);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue