fix: rename the henza brand to montzar

اپ: اصلاح نام برند به منتزر

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
s.esmaeili
2026-10-10 17:17:14 +03:30
co-authored by Cursor
parent f124a69e76
commit d613d16c82
9 changed files with 16 additions and 14 deletions
@@ -9,7 +9,7 @@ import { createPool, type Pool, type RowDataPacket } from 'mysql2/promise';
export interface Options {
sourceUrl: string;
targetUrl: string;
/** henza `storage/` folder holding the image files (optional). */
/** Legacy system's `storage/` folder holding the image files (optional). */
imagesDir?: string;
/** Target UPLOAD_DIR the files are copied into (required with imagesDir). */
uploadDir?: string;
@@ -56,7 +56,7 @@ export class Report {
}
render(header: string[]): string {
const out: string[] = ['# henza → gold-bank import report', '', ...header, ''];
const out: string[] = ['# legacy (oapi) → montzar import report', '', ...header, ''];
for (const [step, s] of this.sections) {
out.push(`## ${step}`, '');
if (s.counts.size) {
@@ -317,7 +317,7 @@ function copyImage(ctx: Ctx, file: string, step: string) {
return;
}
if (!existsSync(from) || !statSync(from).isFile()) {
ctx.report.count('images', 'missing in henza storage');
ctx.report.count('images', 'missing in legacy storage');
ctx.report.note('images', `missing file ${file} (referenced from ${step})`);
return;
}