make sure to save the product

This commit is contained in:
buzz-lightsnack-2007 2024-04-15 14:46:48 +08:00
parent fba38ba823
commit 9e164cabcc

View file

@ -17,8 +17,9 @@ export default class processor {
async analyze() { async analyze() {
this.product = new product(this.data); this.product = new product(this.data);
await this.product.attach(); await this.product.attach();
console.log(this.product); await this.product.analyze();
console.log(await this.product.analyze()); this.product.save();
console.log(this.product.analysis);
} }
constructor (filter) { constructor (filter) {