Skip to content

Commit

Permalink
fix(supabase): add default list of reattempt codes (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
tshedor authored Sep 6, 2024
1 parent e727c03 commit 8d08411
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,21 @@ abstract class OfflineFirstWithSupabaseRepository
required DatabaseFactory databaseFactory,
http.Client? innerClient,
Duration? processingInterval,
List<int>? reattemptForStatusCodes,
List<int> reattemptForStatusCodes = const [
400,
401,
403,
404,
405,
408,
409,
429,
500,
501,
502,
503,
504,
],
bool? serialProcessing,
}) {
final client = RestOfflineQueueClient(
Expand Down
7 changes: 4 additions & 3 deletions packages/brick_offline_first_with_supabase/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ homepage: https://github.com/GetDutchie/brick/tree/main/packages/brick_offline_f
issue_tracker: https://github.com/GetDutchie/brick/issues
repository: https://github.com/GetDutchie/brick

version: 0.1.0+1
version: 0.1.0+2

environment:
sdk: ">=3.0.0 <4.0.0"

dependencies:
brick_core: ^1.1.1
brick_offline_first: ">=3.0.0 <4.0.0"
brick_supabase: ">=0.0.1 <2.0.0"
brick_sqlite: ">=3.0.0 <4.0.0"
brick_supabase: ">=0.0.1 <2.0.0"
brick_offline_first_with_rest: ">=3.0.2 <4.0.0"
http: ">=1.0.0 <2.0.0"
logging: ">=1.0.0 <2.0.0"
Expand All @@ -24,5 +24,6 @@ dependencies:
dev_dependencies:
lints: ^2.0.1
mockito: ^5.0.0
test: ^1.16.5
sqflite_common_ffi: ^2.0.0
supabase: ">=2.3.0 <3.0.0"
test: ^1.16.5

0 comments on commit 8d08411

Please sign in to comment.