Skip to content

Commit 3379a8f

Browse files
committed
edited notes: extract sqlquery var for eslint to recognize indentation
1 parent 5557cd4 commit 3379a8f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

apps/server/src/routes/api/edited-notes.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ function getEditedNotesOnDate(req: Request) {
2525
const resolvedDateParams = resolveDateParams(req.params.date);
2626

2727
const sqlParams = { date: resolvedDateParams.date + "%" };
28-
29-
const noteIds = sql.getColumn<string>(/*sql*/`\
28+
const sqlQuery = /*sql*/`\
3029
SELECT notes.*
3130
FROM notes
3231
WHERE noteId IN (
@@ -39,7 +38,10 @@ function getEditedNotesOnDate(req: Request) {
3938
WHERE revisions.dateCreated LIKE :date
4039
)
4140
ORDER BY isDeleted
42-
LIMIT 50`,
41+
LIMIT 50`;
42+
43+
const noteIds = sql.getColumn<string>(
44+
sqlQuery,
4345
sqlParams
4446
);
4547

0 commit comments

Comments
 (0)