minor updates and new providers

This commit is contained in:
RoyceDa
2026-01-31 03:02:42 +02:00
parent 2ab86b8df3
commit bcb7e917da
5 changed files with 90 additions and 56 deletions

View File

@@ -125,6 +125,13 @@ export function InformationProvider(props: InformationProviderProps) {
}
const updateUserInformation = async (userInfo : UserInformation) => {
if(systemAccounts.find((acc) => acc.publicKey == userInfo.publicKey)){
/**
* Данные системных аккаунтов не нужно кэшифровать, они уже
* прописаны в коде
*/
return;
}
const result = await getQuery("SELECT COUNT(*) as count FROM cached_users WHERE public_key = ?", [userInfo.publicKey]);
if (result.count > 0) {
await runQuery(`UPDATE cached_users SET title = ?, username = ?, verified = ? WHERE public_key = ?`, [userInfo.title, userInfo.username, userInfo.verified, userInfo.publicKey]);