Skip to content

Commit 369197f

Browse files
committed
feat: sort emails on order
1 parent b488743 commit 369197f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/database/statements.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export const SQL_STATEMENTS = {
6868
FROM Email
6969
JOIN Inbox ON Email.id = Inbox.emailId
7070
WHERE Inbox.address = ?
71+
ORDER BY Email.createdAt DESC
7172
`,
7273

7374
GET_INBOX_BY_ID: `

0 commit comments

Comments
 (0)