Optimize export import (#4795)

* feat: add saveBatch and optimize duplication id handling

* feat: improve lookup performance by using Set
This commit is contained in:
Ong Chung Yau
2025-07-09 18:36:47 +08:00
committed by GitHub
parent 30e8317327
commit 6baec93860
2 changed files with 29 additions and 14 deletions
@@ -39,7 +39,7 @@ const importData = async (req: Request, res: Response, next: NextFunction) => {
}
await exportImportService.importData(importData, orgId, workspaceId, subscriptionId)
return res.json({ message: 'success' })
return res.status(StatusCodes.OK).json({ message: 'success' })
} catch (error) {
next(error)
}