Skip to content

Conversation

DominicGBauer
Copy link
Contributor

@DominicGBauer DominicGBauer commented Aug 14, 2024

Description

An issue arose when we wanted to change a value from a non-null type to null in uploadData function. This was a result of opData always returning strings and therefore returning "null" and not null. The uploadData function tried to upload data to the postgres db which would result in for example:

Data upload error - retrying last entry: CrudEntry<3/3 PATCH todos/d6b6d112-e779-4389-a7b4-34c45808ecdc {completed=0, completed_at=null, completed_by=null}>, io.github.jan.supabase.exceptions.BadRequestRestException: invalid input syntax for type timestamp with time zone: "null"

Work Done

Added a case to handle null values in opData.

Video

Video shows values returning true when not null and false when null in the console. Also no errors are shown where previously the error above would be shown.

Screen.Recording.2024-08-14.at.16.29.13.mov

@DominicGBauer DominicGBauer self-assigned this Aug 14, 2024
@DominicGBauer DominicGBauer merged commit 53b29a9 into main Aug 14, 2024
3 checks passed
@DominicGBauer DominicGBauer deleted the fix/null-values-in-opData branch August 14, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants