ваше сообщение коммита

This commit is contained in:
2025-04-21 18:03:43 +03:00
parent 4648aab7d5
commit 43569ea38c
37 changed files with 7226 additions and 1425 deletions

View File

@@ -37,7 +37,8 @@ async function addUserIdentity(userId, provider, providerId) {
);
return true;
} catch (error) {
if (error.code === '23505') { // Уникальное ограничение нарушено
if (error.code === '23505') {
// Уникальное ограничение нарушено
return false;
}
throw error;
@@ -49,5 +50,5 @@ module.exports = {
isValidEmail,
generateVerificationCode,
checkUserIdentity,
addUserIdentity
addUserIdentity,
};