style: format changed files with prettier
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -64,7 +64,12 @@ export function registerCleanerHistoryHandlers(): void {
|
||||
*/
|
||||
ipcMain.handle(
|
||||
IPC_CHANNELS.CLEANER_HISTORY_GET_BATCH_DETAILS,
|
||||
async (_event, batchId: string): Promise<IpcResult<{ executions: CleanerExecutionRecord[]; orders: CleanerOrderRecord[] }>> => {
|
||||
async (
|
||||
_event,
|
||||
batchId: string
|
||||
): Promise<
|
||||
IpcResult<{ executions: CleanerExecutionRecord[]; orders: CleanerOrderRecord[] }>
|
||||
> => {
|
||||
return withErrorHandling(async () => {
|
||||
const currentUser = SessionManager.getInstance().getUserInfo()
|
||||
|
||||
@@ -94,7 +99,12 @@ export function registerCleanerHistoryHandlers(): void {
|
||||
*/
|
||||
ipcMain.handle(
|
||||
IPC_CHANNELS.CLEANER_HISTORY_GET_MATERIAL_DETAILS,
|
||||
async (_event, batchId: string, attemptNumber: number, orderNumber: string): Promise<IpcResult<CleanerMaterialRecord[]>> => {
|
||||
async (
|
||||
_event,
|
||||
batchId: string,
|
||||
attemptNumber: number,
|
||||
orderNumber: string
|
||||
): Promise<IpcResult<CleanerMaterialRecord[]>> => {
|
||||
return withErrorHandling(async () => {
|
||||
const currentUser = SessionManager.getInstance().getUserInfo()
|
||||
|
||||
|
||||
@@ -481,8 +481,7 @@ export class CleanerApplicationService {
|
||||
: 'success'
|
||||
|
||||
// Build error message from execution-level errors (excluding per-order errors)
|
||||
const execErrorMessage =
|
||||
result.errors.length > 0 ? result.errors.join('\n') : undefined
|
||||
const execErrorMessage = result.errors.length > 0 ? result.errors.join('\n') : undefined
|
||||
|
||||
// Update execution status
|
||||
await historyDao.updateExecutionStatus(
|
||||
|
||||
@@ -752,8 +752,15 @@ export class CleanerOperationHistoryDAO {
|
||||
attemptNumber: row.AttemptNumber as number,
|
||||
userId: row.UserId as number,
|
||||
username: row.Username as string,
|
||||
operationTime: row.OperationTime instanceof Date ? row.OperationTime : new Date(row.OperationTime as string),
|
||||
endTime: row.EndTime ? (row.EndTime instanceof Date ? row.EndTime : new Date(row.EndTime as string)) : null,
|
||||
operationTime:
|
||||
row.OperationTime instanceof Date
|
||||
? row.OperationTime
|
||||
: new Date(row.OperationTime as string),
|
||||
endTime: row.EndTime
|
||||
? row.EndTime instanceof Date
|
||||
? row.EndTime
|
||||
: new Date(row.EndTime as string)
|
||||
: null,
|
||||
status: row.Status as string,
|
||||
isDryRun: !!(row.IsDryRun as number),
|
||||
totalOrders: row.TotalOrders as number,
|
||||
|
||||
Reference in New Issue
Block a user