mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 11:56:45 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
a4f88e61d7
commit
86cb3b08f5
1 changed files with 9 additions and 0 deletions
|
|
@ -480,6 +480,15 @@ async function handleUpdateExistingService(
|
||||||
HERMES_TTS_PROVIDER: ttsProvider,
|
HERMES_TTS_PROVIDER: ttsProvider,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Re-aplica TELEGRAM_ALLOWED_USERS / HOME_CHANNEL se já capturamos chat_id do dono
|
||||||
|
// (importante para corrigir agentes que foram provisionados sem chat_id e tinham
|
||||||
|
// que pedir pairing manual).
|
||||||
|
if (agent.telegram_user_chat_id) {
|
||||||
|
const chatIdStr = String(agent.telegram_user_chat_id);
|
||||||
|
variables.TELEGRAM_ALLOWED_USERS = chatIdStr;
|
||||||
|
variables.TELEGRAM_HOME_CHANNEL = chatIdStr;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await upsertRailwayVariableCollection({
|
await upsertRailwayVariableCollection({
|
||||||
token: RAILWAY_API_TOKEN!,
|
token: RAILWAY_API_TOKEN!,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue