minor updates and new providers
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user