fix(api): honor createdAt on activity Excel import
So Didar activity re-imports can land in prior archive instead of defaulting to now. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -400,6 +400,7 @@ export class ActivitiesExcelService {
|
||||
.join('\n'));
|
||||
const dueAt = parseJalaliDateTime(row.dueDate, row.dueTime);
|
||||
const doneAt = parseJalaliDateTime(row.doneDate, row.doneTime);
|
||||
const createdAt = parseJalaliDateTime(row.createdAt);
|
||||
const status = parseStatus(row.status);
|
||||
|
||||
try {
|
||||
@@ -452,6 +453,7 @@ export class ActivitiesExcelService {
|
||||
dealId,
|
||||
assigneeId,
|
||||
createdById: creatorId,
|
||||
...(createdAt ? { createdAt } : {}),
|
||||
},
|
||||
select: { id: true },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user