Add page-view analytics, product counters, SSL expiry, and business renewal.
Auto-count storefront page views with 6-month event retention and lifetime counters, track product visit/cart/sale stats, persist SSL cert expiry with daily probes, and support owner titles plus annual contract renewal. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
6cd0b009ef
commit
92601ae729
@@ -509,6 +509,11 @@ export class OrdersService {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
await tx.product.update({
|
||||
where: { id: item.productId },
|
||||
data: { saleCount: { increment: item.quantity } },
|
||||
});
|
||||
}
|
||||
|
||||
return created as OrderWithItems;
|
||||
|
||||
Reference in New Issue
Block a user