Free person slots (up to 30), Páros 3 500 Ft
- Persons are free up to FREE_PERSON_SLOTS (30); packages give no person slots, the "+5 személy" add-on is retired (still known for old orders and payments in flight). At the cap: write to us, an admin grants more. - Páros 3 500 Ft; "bought one by one" prices without persons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -190,7 +190,7 @@ pub async fn grant_package(
|
||||
WithRejection(Path(id), _): IdPath,
|
||||
WithRejection(Json(req), _): Body<GrantPackage>,
|
||||
) -> ApiResult<(StatusCode, Json<Value>)> {
|
||||
let package = packages::find(&req.package).ok_or(ApiError::NotFound("package"))?;
|
||||
let package = packages::on_sale(&req.package).ok_or(ApiError::NotFound("package"))?;
|
||||
let exists: Option<(Uuid,)> =
|
||||
sqlx::query_as("SELECT id FROM users WHERE id = $1").bind(id).fetch_optional(&state.db).await?;
|
||||
exists.ok_or(ApiError::NotFound("user"))?;
|
||||
|
||||
Reference in New Issue
Block a user