Moved the ? marker in the sql query to the end of the statement.
This commit is contained in:
@@ -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",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user