1
0

Don't modify reply's date when edit.

This commit is contained in:
Alexander Andreev 2023-05-06 22:20:58 +04:00
parent 9347a16fca
commit 2cc91b351c
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -261,8 +261,7 @@ func (d *SQLiteDatabase) EditReply(reply *guestbook.Reply) error {
}
defer tx.Rollback()
row := tx.Stmt(stmtUpdateReply).QueryRow(
reply.Created.Format(guestbook.DateFormat), reply.Message, reply.ID)
row := tx.Stmt(stmtUpdateReply).QueryRow(reply.Message, reply.ID)
if row.Err() != nil {
return row.Err()
}