Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lyoshenka committed Mar 13, 2024
1 parent 5378b08 commit 591d089
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pages/api/v2/location/[externId]/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async function handler(
res: NextApiResponse<LocationPublishResponse>,
opts: { auth: AuthData }
) {
if (req.method === 'POST') {
if (req.method !== 'POST') {
res.setHeader('Allow', ['POST'])
res.status(405).send({ error: 'Method not allowed' })
return
Expand Down
2 changes: 1 addition & 1 deletion pages/api/v2/profile/signal-interest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ async function handler(
res: NextApiResponse,
opts: { auth: AuthData }
) {
if (req.method === 'POST') {
if (req.method !== 'POST') {
res.setHeader('Allow', ['POST'])
res.status(405).send({ error: 'Method not allowed' })
return
Expand Down

0 comments on commit 591d089

Please sign in to comment.