Skip to content

Commit 1f9dbe2

Browse files
authored
Merge branch 'main' into ccl-updates
2 parents ab90c85 + 5a867de commit 1f9dbe2

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

cmd/root.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ func Execute() {
3232
func init() {
3333
cobra.OnInitialize(initConfig)
3434

35-
cfgFile, err := util.GetConfigPath()
35+
var err error
36+
cfgFile, err = util.GetConfigPath()
3637
if err != nil {
3738
fmt.Println(err)
3839
os.Exit(1)

internal/mock_api/endpoints/drops/entitlements.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ func getEntitlements(w http.ResponseWriter, r *http.Request) {
7070
id := r.URL.Query().Get("id")
7171
userID := r.URL.Query().Get("user_id")
7272
gameID := r.URL.Query().Get("game_id")
73+
status := r.URL.Query().Get("fulfillment_status")
7374

7475
if userCtx.UserID != "" && userID != "" {
7576
mock_errors.WriteBadRequest(w, "user_id is invalid when using user access token")
@@ -78,7 +79,7 @@ func getEntitlements(w http.ResponseWriter, r *http.Request) {
7879
if userCtx.UserID != "" {
7980
userID = userCtx.UserID
8081
}
81-
e := database.DropsEntitlement{UserID: userID, GameID: gameID, ID: id}
82+
e := database.DropsEntitlement{UserID: userID, GameID: gameID, ID: id, Status: status}
8283
dbr, err := db.NewQuery(r, 1000).GetDropsEntitlements(e)
8384
if err != nil {
8485
mock_errors.WriteServerError(w, "error fetching entitlements")

0 commit comments

Comments
 (0)