@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
20 lines (14 loc) • 441 B
text/typescript
import { dataSync } from '@/database/_deprecated/core';
import { StartDataSyncParams } from '@/types/sync';
class SyncService {
enabledSync = async (params: StartDataSyncParams) => {
if (typeof window === 'undefined') return false;
await dataSync.startDataSync(params);
return true;
};
disableSync = async () => {
await dataSync.disconnect();
return false;
};
}
export const syncService = new SyncService();