Skip to content

Commit

Permalink
rename database model files
Browse files Browse the repository at this point in the history
  • Loading branch information
koenigskraut committed Aug 3, 2023
1 parent a871bca commit 3d6e04e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions database/stickers.go → database/sticker.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,3 @@ func (s *Sticker) Download(ctx context.Context, api *tg.Client, thumbnailSize Th
}
return nil, err
}

//func (s *Sticker) Fetch() (stickerID uint64, err error) {
// var temp Sticker
// err = DB.Where(&Sticker{DocumentID: s.DocumentID}).First(&temp).Error
// if err != nil && err != gorm.ErrRecordNotFound {
// return 0, err
// }
// if temp.ID > 0 {
// return temp.ID, nil
// } else {
// err = DB.Create(s).Error
// return s.ID, err
// }
//}
File renamed without changes.
File renamed without changes.

0 comments on commit 3d6e04e

Please sign in to comment.