Get or create a singleton SyncEngine instance
Ensures that only one SyncEngine is created and initialized per process, preventing duplicate metadata refreshes that cause the double GetAllMetadata() console output.
The user context for database operations
Promise resolving to initialized SyncEngine instance
const syncEngine = await getSyncEngine(getSystemUser());// Use syncEngine for operations Copy
const syncEngine = await getSyncEngine(getSystemUser());// Use syncEngine for operations
Get or create a singleton SyncEngine instance
Ensures that only one SyncEngine is created and initialized per process, preventing duplicate metadata refreshes that cause the double GetAllMetadata() console output.