Consistency

This commit is contained in:
binwiederhier
2026-02-23 11:17:57 -05:00
parent 811c7ae25a
commit 90d0eca14d
3 changed files with 12 additions and 7 deletions

View File

@@ -299,6 +299,8 @@ func (c *commonStore) Message(id string) (*model.Message, error) {
// UpdateMessageTime updates the time column for a message by ID. This is only used for testing.
func (c *commonStore) UpdateMessageTime(messageID string, timestamp int64) error {
c.maybeLock()
defer c.maybeUnlock()
_, err := c.db.Exec(c.queries.updateMessageTime, timestamp, messageID)
return err
}