Fix saving note

This commit is contained in:
P0nk
2022-12-27 10:24:47 +01:00
parent 7e3be4c45d
commit 5f1f5b7dcd

View File

@@ -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())