문서 파일 정리
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
|
||||
import { supabase } from '@/lib/supabase';
|
||||
import { isSyncEnabled } from '../syncSettings';
|
||||
import { addToDeletedTransactions } from './deletedTransactionsTracker';
|
||||
|
||||
/**
|
||||
* Supabase 서버에서 트랜잭션을 삭제하는 함수 - 안정성 및 성능 최적화 버전
|
||||
@@ -21,6 +22,9 @@ export const deleteTransactionFromServer = async (userId: string, transactionId:
|
||||
}, 2000);
|
||||
|
||||
try {
|
||||
// 삭제된 트랜잭션 ID 추적 목록에 추가
|
||||
addToDeletedTransactions(transactionId);
|
||||
|
||||
// 서버 요청 실행
|
||||
const { error } = await supabase
|
||||
.from('transactions')
|
||||
|
||||
Reference in New Issue
Block a user