Skip to content

Commit eb3453a

Browse files
committed
fix(upstash): throw on unknown operation instead of silently falling back to get
1 parent 769a804 commit eb3453a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/blocks/blocks/upstash.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ export const UpstashBlock: BlockConfig<UpstashResponse> = {
290290
case 'ttl':
291291
return 'upstash_redis_ttl'
292292
default:
293-
return 'upstash_redis_get'
293+
throw new Error(`Unknown operation: ${params.operation}`)
294294
}
295295
},
296296
},

0 commit comments

Comments
 (0)