Added variable for status for database request query.
This commit is contained in:
@@ -20,7 +20,7 @@ class RequestRepository {
|
|||||||
constructor(database) {
|
constructor(database) {
|
||||||
this.database = database || establishedDatabase;
|
this.database = database || establishedDatabase;
|
||||||
this.queries = {
|
this.queries = {
|
||||||
'insertRequest': "INSERT INTO requests VALUES (?, ?, ?, ?, ?, ?, CURRENT_DATE)",
|
'insertRequest': "INSERT INTO requests VALUES (?, ?, ?, ?, ?, ?, CURRENT_DATE, 'requested')",
|
||||||
'fetchRequstedItems': "SELECT * FROM requests",
|
'fetchRequstedItems': "SELECT * FROM requests",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user