fix: add missing ctx

This commit is contained in:
Jason Song
2022-12-05 14:46:34 +08:00
parent bd1af5b7f8
commit fdd3444c52
5 changed files with 26 additions and 26 deletions

View File

@ -80,7 +80,7 @@ func CreateCommitStatus(ctx context.Context, job *bots_model.BotRunJob) error {
return fmt.Errorf("GetPushEventPayload: %w", err)
}
creator, err := user_model.GetUserByID(payload.Pusher.ID)
creator, err := user_model.GetUserByID(ctx, payload.Pusher.ID)
if err != nil {
return fmt.Errorf("GetUserByID: %w", err)
}