From 3eafcd0e6a562930533d97217a932d87a6d26eeb Mon Sep 17 00:00:00 2001 From: Volodymyr Kolesnykov Date: Mon, 18 Nov 2024 19:54:13 +0200 Subject: [PATCH] fix(dev-env): SQL sync for single sites --- src/commands/dev-env-sync-sql.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/dev-env-sync-sql.ts b/src/commands/dev-env-sync-sql.ts index 554ec731d..abb2b6389 100644 --- a/src/commands/dev-env-sync-sql.ts +++ b/src/commands/dev-env-sync-sql.ts @@ -247,7 +247,7 @@ export class DevEnvSyncSQLCommand { public async fixBlogsTable(): Promise< void > { const networkSites = this.env.wpSitesSDS?.nodes; - if ( ! networkSites ) { + if ( ! networkSites || networkSites.length < 2 ) { return; }