-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vouchers): add lookup of hrEntity to API
This commit adds the ability to create vouchers with entity_uuids by specifying an hrEntity that is automatically linked via helper functions. Currently, if an hrEntity does not match, the API simply ignores it. In the long run, we might want to block the user if we cannot find a match for the entity specified - this would require flipping to a series of db.one()s or comparing unique array lengths. db.one() would be less efficient (more DB calls), but arguably simpler to read and maintain.
- Loading branch information
Showing
2 changed files
with
43 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters