mirror of
https://github.com/colanode/colanode.git
synced 2026-05-18 13:15:12 +02:00
Optimize mutations
This commit is contained in:
@@ -146,7 +146,7 @@ const sendMutations = async (user: User, workspaceId: string) => {
|
||||
const batch = remainingMutations.splice(0, batchSize);
|
||||
|
||||
console.log(
|
||||
`Sending batch ${currentBatch} of ${totalBatches} mutations for user ${user.login.account.email}`
|
||||
`Sending batch ${currentBatch++} of ${totalBatches} mutations for user ${user.login.account.email}`
|
||||
);
|
||||
|
||||
await axios.post(
|
||||
@@ -158,8 +158,6 @@ const sendMutations = async (user: User, workspaceId: string) => {
|
||||
headers: { Authorization: `Bearer ${user.login.token}` },
|
||||
}
|
||||
);
|
||||
|
||||
currentBatch++;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user