mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-15 17:42:41 +02:00
goodbye to the Persist method that was silly
This commit is contained in:
@ -191,12 +191,6 @@ func OpenLocalSqliteDb() (*gorm.DB, error) {
|
||||
return db, nil
|
||||
}
|
||||
|
||||
// TODO: DELETE THIS METHOD
|
||||
func Persist(db *gorm.DB, entry HistoryEntry) error {
|
||||
db.Create(&entry)
|
||||
return nil
|
||||
}
|
||||
|
||||
func Search(db *gorm.DB, query string, limit int) ([]*HistoryEntry, error) {
|
||||
tokens, err := tokenize(query)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user