подскажите пожалуйста, пытаюсь выполнить запрос с помощью map в массиве данных.
```const cards = await
payload.map((items: any) => {
sequelize.query(
`insert into DOC(documents_id, Executors_id, Executor_type, parent_id)
values(:documents_id, :executors_id, :executor_type, :parent_id)`,
{
replacements: {
documents_id: items.documentsId ?? null,
executors_id: items.performerId ?? null,
executor_type: items.peformerType ?? null,
parent_id: items.parentId ?? null
},
type: QueryTypes.INSERT,
});
});```
вылетает ошибка `(node:18164) UnhandledPromiseRejectionWarning: SequelizeDatabaseError: Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun
the transaction.`