feat: add services and separate further
This commit is contained in:
@@ -33,13 +33,13 @@ func scanFS(env bootstrap.Environment) (map[string]struct{}, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
res := make(map[string]struct{})
|
||||
resp := make(map[string]struct{})
|
||||
for _, f := range fsFiles {
|
||||
full := filepath.Join(env.ContentDirectory, f.Name())
|
||||
res[full] = struct{}{}
|
||||
resp[full] = struct{}{}
|
||||
}
|
||||
|
||||
return res, nil
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
func scanDB(db *gorm.DB) (map[string]database.File, error) {
|
||||
@@ -48,10 +48,10 @@ func scanDB(db *gorm.DB) (map[string]database.File, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
res := make(map[string]database.File)
|
||||
resp := make(map[string]database.File)
|
||||
for _, f := range files {
|
||||
res[f.FilePath] = f
|
||||
resp[f.FilePath] = f
|
||||
}
|
||||
|
||||
return res, nil
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user