Skip to content

Commit 221bc41

Browse files
committed
fix(): limiter events payload
1 parent 92c90f5 commit 221bc41

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

workers/paymaster/src/index.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,7 @@ export default class PaymasterWorker extends Worker {
336336
private async blockWorkspace(workspace: WorkspaceDBScheme): Promise<void> {
337337
await this.addTask(WorkerNames.LIMITER, {
338338
type: 'block-workspace',
339-
payload: {
340-
workspaceId: workspace._id.toString(),
341-
},
339+
workspaceId: workspace._id.toString(),
342340
});
343341

344342
/**
@@ -362,9 +360,7 @@ export default class PaymasterWorker extends Worker {
362360
private async unblockWorkspace(workspace: WorkspaceDBScheme): Promise<void> {
363361
await this.addTask(WorkerNames.LIMITER, {
364362
type: 'unblock-workspace',
365-
payload: {
366-
workspaceId: workspace._id.toString(),
367-
},
363+
workspaceId: workspace._id.toString(),
368364
});
369365
}
370366

0 commit comments

Comments
 (0)