Use string id

This commit is contained in:
Andrea Maria Piana 2022-10-17 17:50:59 +01:00
parent 953e85dc23
commit 190ce53568
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ func (db sqlitePersistence) SaveActivityCenterNotification(notification *Activit
}
}
_, err = tx.Exec(`INSERT INTO activity_center_notifications (id, timestamp, notification_type, chat_id, message, reply_message, author) VALUES (?,?,?,?,?,?,?)`, notification.ID, notification.Timestamp, notification.Type, notification.ChatID, encodedMessage, encodedReplyMessage, notification.Author)
_, err = tx.Exec(`INSERT INTO activity_center_notifications (id, timestamp, notification_type, chat_id, message, reply_message, author) VALUES (?,?,?,?,?,?,?)`, notification.ID.String(), notification.Timestamp, notification.Type, notification.ChatID, encodedMessage, encodedReplyMessage, notification.Author)
return err
}