@keak/sdk 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -16601,6 +16601,11 @@ class TelemetryService {
|
|
|
16601
16601
|
updates.outcome = VariantOutcome.EDITED;
|
|
16602
16602
|
updates.final_code = new_code;
|
|
16603
16603
|
}
|
|
16604
|
+
else { // if the user set it back to original suggested variant
|
|
16605
|
+
updates.has_edits = false;
|
|
16606
|
+
updates.outcome = VariantOutcome.PENDING;
|
|
16607
|
+
updates.final_code = null;
|
|
16608
|
+
}
|
|
16604
16609
|
updates.last_previewed_at = new Date().toISOString();
|
|
16605
16610
|
updates.preview_count = variantData.preview_count + 1;
|
|
16606
16611
|
await this.updateVariant(variantId, updates);
|