1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

Add config to services.

This commit is contained in:
Ferdinand Mütsch
2019-05-16 22:53:03 +02:00
parent c7a8372516
commit de65ab1814
4 changed files with 11 additions and 8 deletions

View File

@@ -11,7 +11,8 @@ import (
const TableHeartbeat = "heartbeat"
type HeartbeatService struct {
Db *gorm.DB
Cofnig *models.Config
Db *gorm.DB
}
func (srv *HeartbeatService) InsertBatch(heartbeats *[]models.Heartbeat) error {