@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.cjs.js
CHANGED
|
@@ -16603,6 +16603,11 @@ class TelemetryService {
|
|
|
16603
16603
|
updates.outcome = VariantOutcome.EDITED;
|
|
16604
16604
|
updates.final_code = new_code;
|
|
16605
16605
|
}
|
|
16606
|
+
else { // if the user set it back to original suggested variant
|
|
16607
|
+
updates.has_edits = false;
|
|
16608
|
+
updates.outcome = VariantOutcome.PENDING;
|
|
16609
|
+
updates.final_code = null;
|
|
16610
|
+
}
|
|
16606
16611
|
updates.last_previewed_at = new Date().toISOString();
|
|
16607
16612
|
updates.preview_count = variantData.preview_count + 1;
|
|
16608
16613
|
await this.updateVariant(variantId, updates);
|