Improve LLM
This commit is contained in:
parent
02712f41e8
commit
80c093b7ba
16 changed files with 898 additions and 278 deletions
|
|
@ -178,7 +178,7 @@ pub async fn get_invite(
|
|||
}
|
||||
|
||||
// Dev-only: return a fake valid admin invite without hitting PocketBase
|
||||
if state.index_html.is_none() && code == DEV_INVITE_CODE {
|
||||
if state.is_dev && code == DEV_INVITE_CODE {
|
||||
return Json(InviteValidation {
|
||||
valid: true,
|
||||
invite_type: "admin".to_string(),
|
||||
|
|
@ -294,7 +294,7 @@ pub async fn post_redeem_invite(
|
|||
}
|
||||
|
||||
// Dev-only: fake redeem — just return "licensed" without touching PocketBase
|
||||
if state.index_html.is_none() && req.code == DEV_INVITE_CODE {
|
||||
if state.is_dev && req.code == DEV_INVITE_CODE {
|
||||
info!(user_id = %user.id, "Dev invite redeemed (no-op)");
|
||||
return Json(RedeemResponse {
|
||||
result: "licensed".to_string(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue