Moved the ? marker in the sql query to the end of the statement.

This commit is contained in:
2017-10-03 16:19:55 +02:00
parent a819a4bbf3
commit 455bf565b2

View File

@@ -20,7 +20,7 @@ class RequestRepository {
constructor(database) {
this.database = database || establishedDatabase;
this.queries = {
'insertRequest': "INSERT INTO requests VALUES (?, ?, ?, ?, ?, ?, ?, CURRENT_DATE, 'requested')",
'insertRequest': "INSERT INTO requests VALUES (?, ?, ?, ?, ?, ?, CURRENT_DATE, 'requested', ?)",
'fetchRequstedItems': "SELECT * FROM requests",
}
}