This commit is contained in:
Rizky 2024-08-23 19:50:38 +07:00
parent c80d2a6e0d
commit 88558f4472
1 changed files with 1 additions and 4 deletions

View File

@ -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})`);