Fix display issue

Addresses a problem where the screen was not displaying correctly.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-15 05:17:38 +00:00
parent d74acdbbb8
commit 1676fb1649
4 changed files with 205 additions and 108 deletions

View File

@@ -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);
}
};