Fix display issue
Addresses a problem where the screen was not displaying correctly.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
import { isSyncEnabled, setSyncEnabled } from './sync/syncSettings';
|
||||
import { isSyncEnabled, setSyncEnabled, getLastSyncTime, setLastSyncTime } from './sync/syncSettings';
|
||||
import { uploadTransactions, downloadTransactions } from './sync/transactionSync';
|
||||
import { uploadBudgets, downloadBudgets } from './sync/budgetSync';
|
||||
|
||||
@@ -10,7 +10,9 @@ export {
|
||||
uploadTransactions,
|
||||
downloadTransactions,
|
||||
uploadBudgets,
|
||||
downloadBudgets
|
||||
downloadBudgets,
|
||||
getLastSyncTime,
|
||||
setLastSyncTime
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -19,8 +21,17 @@ export {
|
||||
export const syncAllData = async (userId: string): Promise<void> => {
|
||||
if (!userId || !isSyncEnabled()) return;
|
||||
|
||||
await downloadTransactions(userId);
|
||||
await downloadBudgets(userId);
|
||||
await uploadTransactions(userId);
|
||||
await uploadBudgets(userId);
|
||||
try {
|
||||
console.log('데이터 동기화 시작...');
|
||||
await downloadTransactions(userId);
|
||||
await downloadBudgets(userId);
|
||||
await uploadTransactions(userId);
|
||||
await uploadBudgets(userId);
|
||||
|
||||
// 동기화 시간 업데이트
|
||||
setLastSyncTime();
|
||||
console.log('데이터 동기화 완료!');
|
||||
} catch (error) {
|
||||
console.error('동기화 중 오류 발생:', error);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user