Skip to content

Commit 2381360

Browse files
committed
Revert "fix: make checkRateLimit method asynchronous"
This reverts commit b826cc8.
1 parent 78c47d9 commit 2381360

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
5555
return this.compileTemplates(this.options.generateImages, record, v => String(v.prompt));
5656
}
5757

58-
private async checkRateLimit(field: string, fieldNameRateLimit: string | undefined, headers: Record<string, string | string[] | undefined>): { error?: string } | void {
58+
private checkRateLimit(field: string, fieldNameRateLimit: string | undefined, headers: Record<string, string | string[] | undefined>): { error?: string } | void {
5959
if (fieldNameRateLimit) {
6060
// rate limit
6161
// const { error } = RateLimiter.checkRateLimit(

0 commit comments

Comments
 (0)