Closed devj3ns closed 1 month ago
@devj3ns Good catch; fixed and merged in #436 . I haven't published this.
@tshedor, thanks! I'll do some more tests on Monday and report back if there are any other issues or bugs.
I just tested it and the exception is gone now. Thanks for the quick fix!
This morning, I tested if the app I am migrating to the new Supabase integration still works offline. Unfortunately, when I upsert a model while being offline, the following exception is thrown:
I checked the debugger, and the exception is thrown in this line inside the
_upsertByType
function of theSupabaseProvider
:final resp = await builder.select(queryTransformer.selectFields).limit(1).maybeSingle();
I can also reproduce this issue with the example_supbase flutter app. (For that, I added a button which upserts a new customer because currently the example only displays the customers but does not allow adding a new one).