From e65d4125b9f4cb8445b0f9d45acd690de082424a Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Tue, 6 Mar 2018 21:27:31 +0100 Subject: [PATCH] Trying to sort on the wrong column name. --- seasoned_api/src/plex/requestRepository.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seasoned_api/src/plex/requestRepository.js b/seasoned_api/src/plex/requestRepository.js index ecc8e3b..1958bb9 100644 --- a/seasoned_api/src/plex/requestRepository.js +++ b/seasoned_api/src/plex/requestRepository.js @@ -17,7 +17,7 @@ class RequestRepository { this.database = database || establishedDatabase; this.queries = { insertRequest: "INSERT INTO requests VALUES (?, ?, ?, ?, ?, ?, ?, CURRENT_DATE, 'requested', ?, ?)", - fetchRequestedItems: 'SELECT * FROM requests ORDER BY name ASC', + fetchRequestedItems: 'SELECT * FROM requests ORDER BY requested_by ASC', fetchRequestedItemsByStatus: 'SELECT * FROM requests WHERE status IS ? AND type LIKE ?', updateRequestedById: 'UPDATE requests SET status = ? WHERE id is ? AND type is ?', checkIfIdRequested: 'SELECT * FROM requests WHERE id IS ? AND type IS ?',