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

feat: artifact transfer route #72

Closed
wants to merge 5 commits into from

Conversation

ashw1nr
Copy link
Contributor

@ashw1nr ashw1nr commented Feb 6, 2024

No description provided.

user: AuthUser,
) -> Result<impl Responder> {
let user_id = user.0;
let bank_block_type_id = 5; //To be altered as per the bank block type id
Copy link
Collaborator

Choose a reason for hiding this comment

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

Move this to the constants.rs

return Err(ErrorBadRequest("Cannot transfer to the same building"));
} else if transfer.artifacts_differ > artifacts_in_bank.artifact_count {
return Err(ErrorBadRequest("Not enough artifacts in the bank"));
} else if existing_artifacts_in_building.block_type_id != 0 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

replace 0 with ROAD_ID

@ashw1nr ashw1nr closed this Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants