Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
chore: use @todo jsdoc tags for missed inline todo comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Sep 28, 2023
1 parent fa538af commit 8df9f3e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/routes/admin/access/bearer-token/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,10 @@ async function route(server, options) {
const page = parseInt(req.query.page, 10) - 1;
const perPage = parseInt(req.query.per_page, 10);

// Stops SQL query with empty WHERE clause from being made and throwing errors
// TODO: replace with JSON Schema subschemas when supported
/**
* Stops SQL query with empty WHERE clause from being made and throwing errors
* @todo replace with JSON Schema subschemas when supported
*/
if (whereArray.length === 0) {
return res.badRequest(
"No valid query string parameters provided"
Expand Down
6 changes: 4 additions & 2 deletions src/routes/contact/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,10 @@ async function route(server, options) {
const page = parseInt(req.query.page, 10) - 1;
const perPage = parseInt(req.query.per_page, 10);

// Stops SQL query with empty WHERE clause from being made and throwing errors
// TODO: replace with JSON Schema subschemas when supported
/**
* Stops SQL query with empty WHERE clause from being made and throwing errors
* @todo replace with JSON Schema subschemas when supported
*/
if (whereArray.length === 0) {
return res.badRequest(
"No valid query string parameters provided"
Expand Down
2 changes: 1 addition & 1 deletion src/server.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ describe("Server deployment", () => {
});

describe("/admin/access/bearer-token/:id route", () => {
// TODO: use `it.concurrent.each()` once it is no longer experimental
/** @todo use `it.concurrent.each()` once it is no longer experimental */
it.each([
{
testName: "basic auth username invalid",
Expand Down

0 comments on commit 8df9f3e

Please sign in to comment.