Don't modify reply's date when edit.
This commit is contained in:
parent
9347a16fca
commit
2cc91b351c
@ -261,8 +261,7 @@ func (d *SQLiteDatabase) EditReply(reply *guestbook.Reply) error {
|
|||||||
}
|
}
|
||||||
defer tx.Rollback()
|
defer tx.Rollback()
|
||||||
|
|
||||||
row := tx.Stmt(stmtUpdateReply).QueryRow(
|
row := tx.Stmt(stmtUpdateReply).QueryRow(reply.Message, reply.ID)
|
||||||
reply.Created.Format(guestbook.DateFormat), reply.Message, reply.ID)
|
|
||||||
if row.Err() != nil {
|
if row.Err() != nil {
|
||||||
return row.Err()
|
return row.Err()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user