Enhance account synchronization with optional tariff syncing
- Updated `syncAccount` function to accept options for selective synchronization. - Modified `syncFromBillmanager` to handle new options for skipping tariff syncs. - Adjusted `TariffsPage` to utilize the new option for syncing only tariffs. - Removed unused tariff tracking from `VpsPage` and updated sync message logic accordingly.
This commit is contained in:
+5
-2
@@ -135,8 +135,11 @@ export async function bulkUpdateVps(ids, action, value) {
|
||||
})
|
||||
}
|
||||
|
||||
export async function syncAccount(accountId) {
|
||||
return fetchApi(`/api/sync/${encodeURIComponent(accountId)}`, { method: 'POST' })
|
||||
export async function syncAccount(accountId, opts = {}) {
|
||||
return fetchApi(`/api/sync/${encodeURIComponent(accountId)}`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(opts),
|
||||
})
|
||||
}
|
||||
|
||||
export async function fetchAccountBalance(accountId) {
|
||||
|
||||
Reference in New Issue
Block a user