Fix saving note

This commit is contained in:
P0nk committed 2022-12-27 10:24:47 +01:00
1 parent 7e3be4c45d
commit 5f1f5b7dcd
1 file changed
+1 -1
@@ -12,7 +12,7 @@ public class NoteDao {
public static void save(Note note) {
try (Handle handle = DatabaseConnection.getHandle()) {
handle.createScript("""
handle.createUpdate("""
INSERT INTO notes (`message`, `from`, `to`, `timestamp`, `fame`, `deleted`)
VALUES (?, ?, ?, ?, ?, ?)""")
.bind(0, note.message())