Clarify technical-info docs and ship pending owner/color fixes.

Document that product specs need /technical-info for labels, auto-verify admin-created business owners, and expand category color presets with Farsi aliases.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-27 06:46:28 +03:30
co-authored by Cursor
parent 3d3abeb65b
commit fb04425df7
12 changed files with 242 additions and 55 deletions
+10 -1
View File
@@ -1129,13 +1129,17 @@ export class BusinessAdminService {
// Users can own multiple businesses. If the cell number already exists,
// refresh name + password from the create form, then attach as owner.
// Admin-created owners are trusted — always mark the cell verified.
if (existing) {
if (!existing.isActive) {
throw new BadRequestException('Owner user is inactive');
}
return tx.user.update({
where: { id: existing.id },
data: nameData,
data: {
...nameData,
cellVerifiedAt: existing.cellVerifiedAt ?? new Date(),
},
});
}
@@ -1202,6 +1206,11 @@ export class BusinessAdminService {
data: { userId: ownerUserId, roleId: businessOwnerRole.id },
});
}
await tx.user.update({
where: { id: ownerUserId },
data: { cellVerifiedAt: new Date() },
});
}
private serializeBusiness(