file service fix

This commit is contained in:
2026-01-27 21:03:15 +01:00
parent ea78a83d78
commit cb4fdb4071
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -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,
}
}
+2 -2
View File
@@ -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,
}
}