Feat: add linter

This commit is contained in:
Grail Finder
2024-11-28 17:57:50 +03:00
parent 14d706f94a
commit 34d415c930
9 changed files with 109 additions and 59 deletions

View File

@@ -55,6 +55,7 @@ func (p ProviderSQL) UpsertChat(chat *models.Chat) (*models.Chat, error) {
if err != nil {
return nil, err
}
defer stmt.Close()
// Execute the query and scan the result into a new chat object
var resp models.Chat
err = stmt.Get(&resp, chat)