file service fix
This commit is contained in:
@@ -34,6 +34,8 @@ func NewDomain() Domain {
|
||||
|
||||
downloadService := NewDownloadService(softwareRepository, releaseRepository)
|
||||
|
||||
fileService := NewFileService(fileRepository)
|
||||
|
||||
return Domain{
|
||||
SoftwareRepository: softwareRepository,
|
||||
ReleaseRepository: releaseRepository,
|
||||
@@ -41,5 +43,6 @@ func NewDomain() Domain {
|
||||
DownloadService: downloadService,
|
||||
SoftwareUpdaterService: softwareUpdaterService,
|
||||
SoftwareService: softwareService,
|
||||
FileService: fileService,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,9 +8,9 @@ type FileService struct {
|
||||
FileRepository FileRepositoryInterface
|
||||
}
|
||||
|
||||
func NewFileService() *FileService {
|
||||
func NewFileService(file_repository FileRepositoryInterface) *FileService {
|
||||
return &FileService{
|
||||
FileRepository: NewFileRepository(),
|
||||
FileRepository: file_repository,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user