mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-02 13:12:13 +08:00
Fix variable naming
This commit is contained in:
parent
503d19fb90
commit
4886d95ad5
1 changed files with 3 additions and 3 deletions
|
@ -115,7 +115,7 @@ module ModelExporters
|
|||
end
|
||||
|
||||
def repository(repository)
|
||||
repositories = {
|
||||
result = {
|
||||
repository: repository,
|
||||
repository_columns: repository.repository_columns.map do |c|
|
||||
repository_column(c)
|
||||
|
@ -125,9 +125,9 @@ module ModelExporters
|
|||
end
|
||||
}
|
||||
unless repository.is_a?(RepositorySnapshot)
|
||||
repositories[:repository_snapshots] = repository.repository_snapshots.map { |r| repository(r) }
|
||||
result[:repository_snapshots] = repository.repository_snapshots.map { |r| repository(r) }
|
||||
end
|
||||
repositories
|
||||
result
|
||||
end
|
||||
|
||||
def repository_row(repository_row)
|
||||
|
|
Loading…
Reference in a new issue