From 9ab0a28558dab13168b1fac5c7eed57d1a7d8351 Mon Sep 17 00:00:00 2001 From: Kevin Jump Date: Thu, 29 Jun 2023 23:50:35 +0100 Subject: [PATCH] don't scope the import on a startup / firstboot publish. --- uSync.BackOffice/Services/uSyncService.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/uSync.BackOffice/Services/uSyncService.cs b/uSync.BackOffice/Services/uSyncService.cs index 1a1d0f8b..c38ff710 100644 --- a/uSync.BackOffice/Services/uSyncService.cs +++ b/uSync.BackOffice/Services/uSyncService.cs @@ -194,14 +194,7 @@ public IEnumerable Import(string folder, bool force, SyncHandlerOpt var handlers = _handlerFactory.GetValidHandlers(handlerOptions); - using ICoreScope scope = _scopeProvider.CreateCoreScope(); - using (scope.SuppressScopeByConfig(_uSyncConfig)) - { - var results = Import(folder, force, handlers, callbacks); - scope.Complete(); - - return results; - } + return Import(folder, force, handlers, callbacks); } ///