Fixed assignment issue.
This commit is contained in:
parent
93f39c7bf8
commit
7b7e29b6fb
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ func (d *Database) Birthdays() *BirthdayModel {
|
|||
|
||||
func (d *Database) Chats() *ChatModel {
|
||||
if d.chats == nil {
|
||||
return NewChatModel(d.ctx, d.db)
|
||||
d.chats = NewChatModel(d.ctx, d.db)
|
||||
}
|
||||
return d.chats
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue