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:
co-authored by
Cursor
parent
3d3abeb65b
commit
fb04425df7
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user