Fix destructuring pattern in location route
Consolidate request body destructuring into single line for better code style and ESLint compliance. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
30fdd72cc5
commit
5517d39e9c
1 changed files with 1 additions and 2 deletions
|
@ -166,8 +166,7 @@ export default (locationModel: Location, profanityFilter: ProfanityFilterService
|
|||
* $ref: '#/components/schemas/Error'
|
||||
*/
|
||||
router.post('/', submitLocationLimiter, async (req: LocationPostRequest, res: Response): Promise<void> => {
|
||||
const { address, latitude, longitude } = req.body;
|
||||
const { description } = req.body;
|
||||
const { address, latitude, longitude, description } = req.body;
|
||||
console.log(`Attempt to add new location: ${address}`);
|
||||
|
||||
// Input validation for security
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue