diff --git a/backend/internal/storage/postgres/storage.go b/backend/internal/storage/postgres/storage.go index 110fef1..0712109 100644 --- a/backend/internal/storage/postgres/storage.go +++ b/backend/internal/storage/postgres/storage.go @@ -12,7 +12,8 @@ func New(pool *pgxpool.Pool) *Storage { func (s *Storage) Pool() *pgxpool.Pool { return s.pool } -func (s *Storage) Users() *UserRepo { return &UserRepo{pool: s.pool} } -func (s *Storage) Chats() *ChatRepo { return &ChatRepo{pool: s.pool} } -func (s *Storage) Messages() *MessageRepo { return &MessageRepo{pool: s.pool} } -func (s *Storage) Sessions() *SessionRepo { return &SessionRepo{pool: s.pool} } +func (s *Storage) Users() *UserRepo { return &UserRepo{pool: s.pool} } +func (s *Storage) Chats() *ChatRepo { return &ChatRepo{pool: s.pool} } +func (s *Storage) Messages() *MessageRepo { return &MessageRepo{pool: s.pool} } +func (s *Storage) Sessions() *SessionRepo { return &SessionRepo{pool: s.pool} } +func (s *Storage) Attachments() *AttachmentRepo { return &AttachmentRepo{pool: s.pool} }