Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
b-j-roberts committed Jun 29, 2024
1 parent 665e294 commit a49a5c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/routes/quests.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func InitQuests(w http.ResponseWriter, r *http.Request) {
for idx, questConfig := range dailyQuestConfig.Quests {
_, err := core.ArtPeaceBackend.Databases.Postgres.Exec(context.Background(), "INSERT INTO DailyQuests (name, description, reward, day_index, quest_id, quest_type) VALUES ($1, $2, $3, $4, $5, $6)", questConfig.Name, questConfig.Description, questConfig.Reward, dailyQuestConfig.Day-1, idx, questConfig.ContractConfig.Type)
if err != nil {
fmt.Println("Error inserting daily quest, ", idx, err)
fmt.Println("Error inserting daily quest, ", idx, err)
routeutils.WriteErrorJson(w, http.StatusInternalServerError, "Failed to insert daily quest")
return
}
Expand Down

0 comments on commit a49a5c5

Please sign in to comment.