refactor: Upgrade typeorm to 0.3.x (#5151)
This commit is contained in:
committed by
GitHub
parent
6608e69457
commit
0a5ab560b1
@@ -1246,9 +1246,9 @@ class Server extends AbstractServer {
|
||||
await queue.stopJob(job);
|
||||
}
|
||||
|
||||
const executionDb = (await Db.collections.Execution.findOne(
|
||||
req.params.id,
|
||||
)) as IExecutionFlattedDb;
|
||||
const executionDb = (await Db.collections.Execution.findOneBy({
|
||||
id: req.params.id,
|
||||
})) as IExecutionFlattedDb;
|
||||
const fullExecutionData = ResponseHelper.unflattenExecutionData(executionDb);
|
||||
|
||||
const returnData: IExecutionsStopData = {
|
||||
@@ -1452,9 +1452,10 @@ export async function start(): Promise<void> {
|
||||
// Set up event handling
|
||||
initEvents();
|
||||
|
||||
const workflow = await Db.collections.Workflow!.findOne({
|
||||
const workflow = await Db.collections.Workflow.findOne({
|
||||
select: ['createdAt'],
|
||||
order: { createdAt: 'ASC' },
|
||||
where: {},
|
||||
});
|
||||
await InternalHooksManager.getInstance().onServerStarted(diagnosticInfo, workflow?.createdAt);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user