diff --git a/src/app/dao/ProductDAO.ts b/src/app/dao/ProductDAO.ts index e82ef44..0237445 100644 --- a/src/app/dao/ProductDAO.ts +++ b/src/app/dao/ProductDAO.ts @@ -11,11 +11,11 @@ export class ProductDAO extends BaseDAO { super(Product.name); } - protected override toDB(model: Product): DBProduct { - return new Product(model.barcode, model.name, model.image, model.id); + protected override toDB(model: Product) { + return new DBProduct(model.barcode, model.name, model.image, model.id); } - protected override fromDB(qR: DBProduct): Product { - return new DBProduct(qR.barcode, qR.name, qR.image, qR.id); + protected override fromDB(qR: DBProduct) { + return new Product(qR.barcode, qR.name, qR.image, qR.id); } }