mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
fix: server error when passing empty heartbeats slice
fix: do not allow to set id for diagnostics inputs chore: remove authentication for diagnostics endpoint from swagger docs
This commit is contained in:
@ -19,5 +19,6 @@ func NewDiagnosticsService(diagnosticsRepo repositories.IDiagnosticsRepository)
|
||||
}
|
||||
|
||||
func (srv *DiagnosticsService) Create(diagnostics *models.Diagnostics) (*models.Diagnostics, error) {
|
||||
diagnostics.ID = 0
|
||||
return srv.repository.Insert(diagnostics)
|
||||
}
|
||||
|
Reference in New Issue
Block a user