Skip to content

Commit

Permalink
Fix return
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Jun 13, 2024
1 parent 0f825c9 commit 4826202
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clients/bigquery/cast.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ func EncodeStructToJSONString(value any) (string, error) {

stringValue := string(bytes)
if strings.Contains(stringValue, constants.ToastUnavailableValuePlaceholder) {
// TODO: Remove this if we don't see it in the logs.
slog.Error("encoded JSON value contains the toast unavailable value placeholder")
return fmt.Sprintf(`{"key":"%s"}`, constants.ToastUnavailableValuePlaceholder), nil
}
return stringValue, nil
}

0 comments on commit 4826202

Please sign in to comment.