Skip to content
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(api): get step data #6855

Merged
merged 3 commits into from
Nov 5, 2024
Merged

fix(api): get step data #6855

merged 3 commits into from
Nov 5, 2024

Conversation

djabarovgeorge
Copy link
Contributor

What changed? Why was the change needed?

Screenshots

Expand for optional sections

Related enterprise PR

Special notes for your reviewer


private async findSteps(command: GetStepDataCommand, workflow: NotificationTemplateEntity) {
const currentStep = workflow.steps.find(
(stepItem) => stepItem._id === command.stepId || stepItem.stepId === command.stepId
Copy link
Contributor Author

@djabarovgeorge djabarovgeorge Nov 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the issue we had
we were missing find by stepId

const controlValuesEntity = await this.controlValuesRepository.findOne({
_environmentId: command.user.environmentId,
_organizationId: command.user.organizationId,
_workflowId: workflowId,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the issue we had
we were fetching by identifier before

@djabarovgeorge djabarovgeorge merged commit 597c388 into next Nov 5, 2024
24 checks passed
@djabarovgeorge djabarovgeorge deleted the fix-get-step-data branch November 5, 2024 10:12
Copy link

netlify bot commented Nov 5, 2024

Deploy Preview for novu-stg-vite-dashboard-poc ready!

Name Link
🔨 Latest commit a541916
🔍 Latest deploy log https://app.netlify.com/sites/novu-stg-vite-dashboard-poc/deploys/6729eae19f15120008f76080
😎 Deploy Preview https://deploy-preview-6855--novu-stg-vite-dashboard-poc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants