ソースを参照

fix context bug

dcsunny 4 年 前
コミット
50e4abdbd8
1 ファイル変更1 行追加1 行削除
  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
 }