fix: Make tests pass on MySQl and Postgres (no-changelog) (#5005)
This commit is contained in:
committed by
GitHub
parent
e4785da2e1
commit
365ffec3b2
@@ -61,7 +61,7 @@ export class PermissionChecker {
|
||||
credentialsWhereCondition,
|
||||
);
|
||||
|
||||
const accessibleCredIds = credentialSharings.map((s) => s.credentialId.toString());
|
||||
const accessibleCredIds = credentialSharings.map((s) => s.credentialsId.toString());
|
||||
|
||||
const inaccessibleCredIds = workflowCredIds.filter((id) => !accessibleCredIds.includes(id));
|
||||
|
||||
|
||||
@@ -438,7 +438,7 @@ export function usersNamespace(this: N8nApp): void {
|
||||
// workflows and credentials might be a sharee
|
||||
await transactionManager.delete(SharedWorkflow, {
|
||||
user: transferee,
|
||||
workflow: In(sharedWorkflowIds.map((sharedWorkflowId) => ({ id: sharedWorkflowId }))),
|
||||
workflowId: In(sharedWorkflowIds),
|
||||
});
|
||||
|
||||
// Transfer ownership of owned workflows
|
||||
@@ -456,7 +456,7 @@ export function usersNamespace(this: N8nApp): void {
|
||||
});
|
||||
|
||||
const sharedCredentialIds = sharedCredentials.map((sharedCredential) =>
|
||||
sharedCredential.credentialId.toString(),
|
||||
sharedCredential.credentialsId.toString(),
|
||||
);
|
||||
|
||||
// Prevents issues with unique key constraints since user being assigned
|
||||
|
||||
Reference in New Issue
Block a user