Add special orders API and related media/auth updates.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-10-12 23:09:30 +03:30
co-authored by Cursor
parent ffc5f8977e
commit 63253f1877
20 changed files with 638 additions and 23 deletions
+4 -2
View File
@@ -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(' '),
});
}