Browse Source

fix context bug

dcsunny 4 năm trước cách đây
mục cha
commit
50e4abdbd8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      common/context.go

+ 1 - 1
common/context.go

@@ -15,7 +15,7 @@ func NewContext(parentCtx context.Context) context.Context {
 func NewContextWithAccountID(parentCtx context.Context, accountID int64) context.Context {
 	ctx := &AccountContext{ctx: parentCtx}
 	newCtx := context2.AppendToContext(ctx, "user_id", accountID)
-	newCtx = context2.AppendToContext(ctx, "account_id", accountID)
+	newCtx = context2.AppendToContext(newCtx, "account_id", accountID)
 	return newCtx
 }