Skip to content

Commit 0f686c8

Browse files
Update apps/sim/blocks/blocks/tinybird.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent fc4ecc8 commit 0f686c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/sim/blocks/blocks/tinybird.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,11 @@ export const TinybirdBlock: BlockConfig<TinybirdResponse> = {
131131
result.format = params.format || 'ndjson'
132132
result.compression = params.compression || 'none'
133133

134+
// Convert wait from string to boolean
134135
// Convert wait from string to boolean
135136
if (params.wait !== undefined) {
136-
result.wait = params.wait === 'true' || params.wait === true || params.wait === 'True'
137+
const waitValue = typeof params.wait === 'string' ? params.wait.toLowerCase() : params.wait
138+
result.wait = waitValue === 'true' || waitValue === true
137139
}
138140
} else if (operation === 'tinybird_query') {
139141
// Query operation

0 commit comments

Comments
 (0)