Skip to content

Commit

Permalink
fix(admin): Displaying short hash instead of fullsize
Browse files Browse the repository at this point in the history
  • Loading branch information
oxodao committed Dec 19, 2024
1 parent 894b0ac commit f0f4bd6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ var rootCmd = &cobra.Command{
}
}

if len(utils.CURRENT_COMMIT) > 7 {
utils.CURRENT_COMMIT = utils.CURRENT_COMMIT[:7]
}

state.STATE.GuestsAllowed = config.GET.GuestsAllowed
state.STATE.HardwareId = config.GET.HardwareID
state.STATE.Version = utils.CURRENT_VERSION
Expand Down

0 comments on commit f0f4bd6

Please sign in to comment.