Skip to content

Commit

Permalink
have agency sending alias to db (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
MackenzieBerliner-Glasser committed Dec 11, 2018
1 parent 4ad2a1c commit 7e880d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/src/routes/api/agencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export default Router()
phone,
businessEmail,
website,
hourlyFee
hourlyFee,
agencyAlias
} = req.body;

Agency.create({
Expand All @@ -29,7 +30,8 @@ export default Router()
phone,
businessEmail,
website,
hourlyFee
hourlyFee,
agencyAlias
})
.then(agency => res.json(agency))
.catch(next);
Expand Down

0 comments on commit 7e880d2

Please sign in to comment.