Skip to content

Commit

Permalink
fix: fixed POST > GET for API logs download
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Oct 3, 2023
1 parent 916a1b7 commit b745149
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/web/my-account/list-logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ async function listLogs(ctx) {
ctx.pathWithoutLocale === '/my-account/logs/download' ||
(ctx.api &&
ctx.pathWithoutLocale === '/v1/logs/download' &&
ctx.method === 'POST')
ctx.method === 'GET')
) {
// download in background and email to users
const now = new Date();
Expand Down
2 changes: 1 addition & 1 deletion routes/api/v1/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ router
);

// logs
router.post(
router.get(
'/logs/download',
policies.ensureApiToken,
policies.checkVerifiedEmail,
Expand Down

0 comments on commit b745149

Please sign in to comment.