From 6d46ba81dc710a19f4bef90e9202792d42d35b34 Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Mon, 15 Apr 2024 23:12:56 +0800 Subject: [PATCH] make sure product data is synced --- scripts/product.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/product.js b/scripts/product.js index a3e727b..da27b17 100644 --- a/scripts/product.js +++ b/scripts/product.js @@ -67,10 +67,10 @@ export default class product { if (!this.#snip) {throw new ReferenceError((new texts(`error_msg_notattached`)).localized)}; // Save the data to the storage. - secretariat.write([`sites`, this.URL, `data`], this.#snip); + secretariat.write([`sites`, this.URL, `data`], this.#snip, 1); // Write the analysis data to the storage. - (this[`analysis`]) ? secretariat.write([`sites`, this.URL, `analysis`], this.analysis): false; + (this[`analysis`]) ? secretariat.write([`sites`, this.URL, `analysis`], this.analysis, 1): false; }; async analyze() {