mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-05-05 17:20:02 -05:00
Update workflow.ts, await hatchet.ratelimits.upsert (#1772)
This is a promise and should be awaited
This commit is contained in:
@@ -2,7 +2,7 @@ import { RateLimitDuration } from '@hatchet-dev/typescript-sdk/protoc/v1/workflo
|
||||
import { hatchet } from '../hatchet-client';
|
||||
|
||||
// > Upsert Rate Limit
|
||||
hatchet.ratelimits.upsert({
|
||||
await hatchet.ratelimits.upsert({
|
||||
key: 'api-service-rate-limit',
|
||||
limit: 10,
|
||||
duration: RateLimitDuration.SECOND,
|
||||
|
||||
Reference in New Issue
Block a user