feat: add isPremium field to TelegramAccount

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-02 22:58:53 +02:00
parent e29bd79d66
commit f454303352
3 changed files with 13 additions and 0 deletions

View File

@@ -308,6 +308,16 @@ export async function updateAccountAuthState(
});
}
export async function updateAccountPremiumStatus(
accountId: string,
isPremium: boolean
): Promise<void> {
await db.telegramAccount.update({
where: { id: accountId },
data: { isPremium },
});
}
export async function getAccountAuthCode(accountId: string) {
const account = await db.telegramAccount.findUnique({
where: { id: accountId },