Skip to content

Commit

Permalink
🐛 fix: Prices must be initialized for the first run (lobehub#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartialBE committed Apr 2, 2024
1 parent 5819a03 commit efb8a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relay/util/#.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func New#() {
}

// 初始化时,需要检测是否有更新
if viper.GetBool("auto_price_updates") {
if viper.GetBool("auto_price_updates") || len(#Instance.Prices) == 0 {
common.SysLog("Checking for # updates")
prices := model.GetDefaultPrice()
#Instance.Sync#(prices, false)
Expand Down

0 comments on commit efb8a9f

Please # to comment.