Fix saving note
This commit is contained in:
@@ -12,7 +12,7 @@ public class NoteDao {
|
|||||||
|
|
||||||
public static void save(Note note) {
|
public static void save(Note note) {
|
||||||
try (Handle handle = DatabaseConnection.getHandle()) {
|
try (Handle handle = DatabaseConnection.getHandle()) {
|
||||||
handle.createScript("""
|
handle.createUpdate("""
|
||||||
INSERT INTO notes (`message`, `from`, `to`, `timestamp`, `fame`, `deleted`)
|
INSERT INTO notes (`message`, `from`, `to`, `timestamp`, `fame`, `deleted`)
|
||||||
VALUES (?, ?, ?, ?, ?, ?)""")
|
VALUES (?, ?, ?, ?, ?, ?)""")
|
||||||
.bind(0, note.message())
|
.bind(0, note.message())
|
||||||
Reference in New Issue
Block a user