Skip to content

Commit

Permalink
Fix: Fix hash
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Apr 5, 2024
1 parent 065c947 commit cbb91c6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend/app/controllers/sonolus_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ def dummy_level(key, name, cover: nil, **kwargs)
cover_path = Rails.public_path.join("assets", "#{cover}.png")
raise "Cover not found: #{cover_path}" unless File.exist?(cover_path)
cover_data = {
type: "LevelCover",
url: "/assets/#{cover}.png",
hash: Digest::SHA1.file(cover_path).hexdigest
}
Expand All @@ -95,11 +94,11 @@ def dummy_level(key, name, cover: nil, **kwargs)
},
cover: cover_data,
bgm: {
type: "LevelBgm",
hash: "",
url: ""
},
data: {
type: "LevelData",
hash: "",
url: ""
}
}
Expand Down

0 comments on commit cbb91c6

Please sign in to comment.