mirror of https://github.com/status-im/fathom.git
Remove `count.CreateArchives` func since we never want to call that from anything other than CLI anyway.
This commit is contained in:
parent
f436d87d95
commit
84bc9e6e99
|
@ -10,5 +10,11 @@ func seedData() {
|
|||
}
|
||||
|
||||
func archiveData() {
|
||||
count.CreateArchives()
|
||||
count.CreatePageviewArchives()
|
||||
count.CreateVisitorArchives()
|
||||
count.CreatePageviewArchivesPerPage()
|
||||
count.CreateScreenArchives()
|
||||
count.CreateLanguageArchives()
|
||||
count.CreateBrowserArchives()
|
||||
count.CreateReferrerArchives()
|
||||
}
|
||||
|
|
|
@ -48,16 +48,6 @@ func (a *Archive) Save(Conn *sql.DB) error {
|
|||
return err
|
||||
}
|
||||
|
||||
// CreateArchives calls all archive creation func's consecutively
|
||||
func CreateArchives() {
|
||||
CreatePageviewArchives()
|
||||
CreateVisitorArchives()
|
||||
CreatePageviewArchivesPerPage()
|
||||
CreateScreenArchives()
|
||||
CreateLanguageArchives()
|
||||
CreateBrowserArchives()
|
||||
}
|
||||
|
||||
func checkError(err error) {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
|
|
Loading…
Reference in New Issue