mirror of
https://github.com/BEDOLAGA-DEV/remnawave-bedolaga-telegram-bot.git
synced 2026-01-20 11:50:27 +00:00
Merge pull request #2037 from BEDOLAGA-DEV/7z2yaf-bedolaga/fix-text-field-key-mismatch-in-updater
Fix welcome text patch text field mapping
This commit is contained in:
@@ -104,6 +104,8 @@ async def update_welcome_text_endpoint(
|
||||
raise HTTPException(status.HTTP_404_NOT_FOUND, "Welcome text not found")
|
||||
|
||||
update_payload = payload.dict(exclude_unset=True)
|
||||
if "text" in update_payload:
|
||||
update_payload["text_content"] = update_payload.pop("text")
|
||||
updated = await update_welcome_text(db, record, **update_payload)
|
||||
return _serialize(updated)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user