Skip to content

Commit bed4d8b

Browse files
fix: 6560 - explicit readyForPriceTagValidation parameter for proof upload (#6573)
* fix: 6560 - explicit readyForPriceTagValidation parameter for proof upload Impacted files: * `background_task_add_price.dart`: added explicit `readyForPriceTagValidation` parameter for proof upload * `pubspec.lock`: wtf * `pubspec.yaml`: upgraded `openfoodfacts` to `3.22.0` * upgraded PricesStatsPage too to openfoodfacts 3.22.0
1 parent 0e8aecb commit bed4d8b

File tree

4 files changed

+137
-153
lines changed

4 files changed

+137
-153
lines changed

packages/smooth_app/lib/background/background_task_add_price.dart

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,12 @@ class BackgroundTaskAddPrice extends BackgroundTaskPrice {
212212
final MediaType initialMediaType =
213213
HttpHelper().imagineMediaType(initialImageUri.path)!;
214214
final MaybeError<Proof> uploadProof = await OpenPricesAPIClient.uploadProof(
215-
proofType: proofType,
216-
date: date,
217-
currency: currency,
218-
locationOSMId: locationOSMId,
219-
locationOSMType: locationOSMType,
215+
createProofParameters: CreateProofParameters(proofType)
216+
..date = date
217+
..currency = currency
218+
..locationOSMId = locationOSMId
219+
..locationOSMType = locationOSMType
220+
..readyForPriceTagValidation = proofType == ProofType.priceTag,
220221
imageUri: initialImageUri,
221222
mediaType: initialMediaType,
222223
bearerToken: bearerToken,

0 commit comments

Comments
 (0)