Minor Update

- Minor remove updates
- Testing remove
This commit is contained in:
Logan Cusano
2023-02-20 00:28:18 -05:00
parent 1e6d60f4c3
commit 74b131fe1e
3 changed files with 12 additions and 11 deletions

View File

@@ -212,11 +212,11 @@ exports.Storage = class Storage {
callback(new Error("No entry title given before deleting"), undefined)
}
const sqlQuery = `DELETE FROM ${this.dbTable} WHERE title = '${title}'`;
const sqlQuery = `DELETE FROM ${this.dbTable} WHERE title = '${title}';`;
runSQL(sqlQuery, this.connection, (err, rows) => {
if (err) callback(err, undefined);
callback(undefined, rows);
callback(undefined, rows[0]);
})
}