n8n/packages/cli/src/databases
Iván Ovejero c5e6ba8cdd
fix(core): Restore workflow ID during execution creation (#8031)
## Summary
Restore workflow ID during execution creation removed by [this
PR](https://github.com/n8n-io/n8n/pull/8002/files#diff-c8cbb62ca9ab2ae45e5f565cd8c63fff6475809a6241ea0b90acc575615224af).
The missing workflow ID, and more generally the fact that `workflow.id`
is optional when it should not be, causes `PermissionChecker.check` to
misreport a credential as inaccessible when it should be accessible.

More generally, start reporting ID-less workflows so we can root them
out and prevent this at type level.

## Related tickets and issues

https://n8nio.slack.com/archives/C035KBDA917/p1702539465555529
2023-12-14 18:13:12 +01:00
..
dsl refactor(core): Switch plain errors in cli to ApplicationError (#7857) 2023-11-29 12:25:10 +01:00
entities refactor(core): Introduce password utility (no-changelog) (#7979) 2023-12-11 18:23:42 +01:00
migrations refactor(core): Switch plain errors in cli to ApplicationError (#7857) 2023-11-29 12:25:10 +01:00
repositories fix(core): Restore workflow ID during execution creation (#8031) 2023-12-14 18:13:12 +01:00
utils refactor(core): Switch plain errors in cli to ApplicationError (#7857) 2023-11-29 12:25:10 +01:00
config.ts feat(core): Make postgres pool-size configurable (no-changelog) (#7772) 2023-11-21 18:13:08 +01:00
ormconfig.ts refactor: consolidate database configs (#4522) 2022-11-04 14:23:58 +01:00
types.ts fix(core): Fix named parameter resolution in migrations (#7688) 2023-11-15 10:31:08 +01:00