Fix TypeScript errors
- Corrected import/export issues related to SyncResult, setSyncEnabled, and clearCloudData in syncUtils.ts. - Updated function calls to match expected arguments.
This commit is contained in:
@@ -120,8 +120,11 @@ const performSync = async (userId: string) => {
|
||||
if (!userId) return;
|
||||
|
||||
try {
|
||||
// 안전한 동기화 함수 사용
|
||||
const result = await trySyncAllData(userId);
|
||||
// 안전한 동기화 함수 사용 (setSyncState를 더미 함수로 제공)
|
||||
const result = await trySyncAllData(userId, (state) => {
|
||||
// 상태 업데이트 콜백 (필요에 따라 처리)
|
||||
console.log('동기화 상태 업데이트:', state);
|
||||
});
|
||||
return result;
|
||||
} catch (error) {
|
||||
console.error('동기화 오류:', error);
|
||||
|
||||
Reference in New Issue
Block a user