Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task completion prizes related on santa types values without any completion order #210

Merged
merged 4 commits into from
Aug 26, 2024

Conversation

ice-myles
Copy link
Contributor

Task completion prizes related on santa types values without any completion order

@ice-myles ice-myles added the enhancement New feature or request label Aug 2, 2024
@ice-myles ice-myles self-assigned this Aug 2, 2024
@ice-myles ice-myles requested a review from a team as a code owner August 2, 2024 18:58
tokenomics/balance.go Show resolved Hide resolved
tokenomics/balance.go Outdated Show resolved Hide resolved
CompletedTasks uint64 `json:"completedTasks,omitempty" example:"3"`
}
if err = json.UnmarshalContext(ctx, message.Value, &val); err != nil || val.UserID == "" || val.CompletedTasks != requiredCompletedTasks {
if err = json.UnmarshalContext(ctx, message.Value, &val); err != nil || val.UserID == "" {
return errors.Wrapf(err, "process: cannot unmarshall %v into %#v", string(message.Value), &val)
}
duplGuardKey := fmt.Sprintf("completed_tasks_ice_prize_dupl_guards:%v", val.UserID)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add val.Type as well in the template

@ice-myles ice-myles force-pushed the feature/task-completion-prizes branch from 6148ae6 to 0338a24 Compare August 15, 2024 20:13
@ice-myles ice-myles force-pushed the feature/task-completion-prizes branch from 77f391d to a63dd9b Compare August 26, 2024 09:05
@ice-ares ice-ares merged commit dbf3c23 into master Aug 26, 2024
29 checks passed
@ice-ares ice-ares deleted the feature/task-completion-prizes branch August 26, 2024 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants