summaryrefslogtreecommitdiff
path: root/storage/storage.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2024-11-28 17:57:50 +0300
committerGrail Finder <wohilas@gmail.com>2024-11-28 17:57:50 +0300
commit34d415c9308f2d089520c2a193cdf8393dcc6b5d (patch)
treebac545ddb1859f18f7d9d75ef5dd23d8c7d29b90 /storage/storage.go
parent14d706f94a45ab43c51f9c03abea7b3588c571c7 (diff)
Feat: add linter
Diffstat (limited to 'storage/storage.go')
-rw-r--r--storage/storage.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/storage.go b/storage/storage.go
index c863799..66640fd 100644
--- a/storage/storage.go
+++ b/storage/storage.go
@@ -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)