Add special orders API and related media/auth updates.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
ffc5f8977e
commit
63253f1877
@@ -22,7 +22,7 @@ async function main() {
|
||||
const password = arg('password');
|
||||
const firstName = arg('first', 'مدیر');
|
||||
const lastName = arg('last', 'بلوط');
|
||||
const title = arg('title', 'جناب آقای');
|
||||
const title = arg('title', '');
|
||||
|
||||
if (!/^09\d{9}$/.test(cellNumber)) {
|
||||
throw new Error('phone must match 09xxxxxxxxx');
|
||||
@@ -51,7 +51,9 @@ async function main() {
|
||||
console.log('Created superAdmin:', {
|
||||
id: user.id,
|
||||
cellNumber: user.cellNumber,
|
||||
name: `${user.title} ${user.firstName} ${user.lastName}`,
|
||||
name: [user.title, user.firstName, user.lastName]
|
||||
.filter(Boolean)
|
||||
.join(' '),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user