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

LF-3651_2 Fix tests and validateSale middleware for sale tests to pass #2883

Conversation

SayakaOno
Copy link
Collaborator

Description

  • In tests, create sales with revenue_type_id for "Crop Sale" gotten from the DB, not hard-coded "1".
  • update validateSale middleware to get revenue_type_id for Crop Sale from the DB.

@kathyavini
Copy link
Collaborator

Thank you!

@kathyavini kathyavini merged commit 53cb70c into LF-3651-revenue-type-table-unique-violation-error-on-auto-incrementing-primary-key Sep 20, 2023
@SayakaOno SayakaOno deleted the LF-3651_test_temp_fix branch November 6, 2023 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants