-
Notifications
You must be signed in to change notification settings - Fork 0
Fix/execution #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/execution #70
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -574,13 +574,13 @@ router.put( | |||||||||||||||||||||||||||||||||
| message: "Invalid input", | ||||||||||||||||||||||||||||||||||
| }); | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
| const { credentialId, ...restConfig } = dataSafe.data.Config; | ||||||||||||||||||||||||||||||||||
| // const { credentialId, ...restConfig } = dataSafe.data.Config; | ||||||||||||||||||||||||||||||||||
| const updateNode = await prismaClient.node.update({ | ||||||||||||||||||||||||||||||||||
| where: { id: dataSafe.data.NodeId }, | ||||||||||||||||||||||||||||||||||
| data: { | ||||||||||||||||||||||||||||||||||
| position: dataSafe.data.position, | ||||||||||||||||||||||||||||||||||
| config: restConfig, | ||||||||||||||||||||||||||||||||||
| CredentialsID: credentialId | ||||||||||||||||||||||||||||||||||
| config: dataSafe.data.Config , | ||||||||||||||||||||||||||||||||||
| CredentialsID: dataSafe.data.Config?.credentialId || null | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+577
to
+583
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Inconsistency between create and update: The create handler (line 527) destructures
This divergence can cause bugs if downstream code reads Consider either stripping Option: Strip credentialId in the update handler too (consistent with create)- // const { credentialId, ...restConfig } = dataSafe.data.Config;
+ const { credentialId, ...restConfig } = dataSafe.data.Config ?? {};
const updateNode = await prismaClient.node.update({
where: { id: dataSafe.data.NodeId },
data: {
position: dataSafe.data.position,
- config: dataSafe.data.Config ,
- CredentialsID: dataSafe.data.Config?.credentialId || null
+ config: restConfig || {},
+ CredentialsID: credentialId || null
},
});📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
Comment on lines
+582
to
+583
|
||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||
| }); | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| {"root":["./src/index.ts","./src/routes/google_callback.ts","./src/routes/nodes.routes.ts","./src/routes/userroutes/usermiddleware.ts","./src/routes/userroutes/userroutes.ts","./src/scheduler/token-scheduler.ts","./src/services/token-refresh.service.ts"],"version":"5.7.3"} | ||
| {"root":["./src/index.ts","./src/routes/google_callback.ts","./src/routes/sheet.routes.ts","./src/routes/userRoutes/executionRoutes.ts","./src/routes/userRoutes/userMiddleware.ts","./src/routes/userRoutes/userRoutes.ts","./src/scheduler/token-scheduler.ts","./src/services/token-refresh.service.ts"],"version":"5.7.3"} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| {"root":["./src/index.ts","./src/types.ts","./src/engine/executor.ts","./src/engine/registory.ts","./src/tests/create-execution.ts","./src/tests/setup-test.ts","./src/tests/test.ts","./src/tests/update-node.ts"],"version":"5.7.3"} | ||
| {"root":["./src/index.ts","./src/engine/executor.ts"],"version":"5.7.3"} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| {"root":["./src/index.ts"],"version":"5.7.3"} | ||
| {"root":["./src/index.ts","./src/interpolation.ts"],"version":"5.7.3"} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| {"root":["./src/index.ts","./src/common/google-oauth-service.ts","./src/gmail/gmail.executor.ts","./src/gmail/gmail.node.ts","./src/gmail/gmail.service.ts","./src/google-sheets/google-sheets.executor.ts","./src/google-sheets/google-sheets.node.ts","./src/google-sheets/google-sheets.service.ts","./src/google-sheets/test.ts","./src/registry/node-registry.ts"],"version":"5.7.3"} | ||
| {"root":["./src/index.ts","./src/common/google-oauth-service.ts","./src/gmail/gmail.executor.ts","./src/gmail/gmail.node.ts","./src/gmail/gmail.service.ts","./src/google-sheets/google-sheets.executor.ts","./src/google-sheets/google-sheets.node.ts","./src/google-sheets/google-sheets.service.ts","./src/google-sheets/test.ts","./src/registry/Execution.config.types.ts","./src/registry/execution.registory.ts","./src/registry/node-registry.ts"],"version":"5.7.3"} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error redirect URL on line 148 still uses the old path
/workflowinstead of/workflows. This inconsistency means that if the OAuth token exchange fails, users will be redirected to the wrong URL. Update this line to use/workflowsto match the successful redirect path on line 135.