make sure product data is synced

This commit is contained in:
buzz-lightsnack-2007 2024-04-15 23:12:56 +08:00
parent fccde5869f
commit 6d46ba81dc

View file

@ -67,10 +67,10 @@ export default class product {
if (!this.#snip) {throw new ReferenceError((new texts(`error_msg_notattached`)).localized)}; if (!this.#snip) {throw new ReferenceError((new texts(`error_msg_notattached`)).localized)};
// Save the data to the storage. // 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. // 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() { async analyze() {