mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add further testing before try to write into tb to fix this error with not matching parameter count
This commit is contained in:
parent
9cd3335088
commit
364efbe495
@ -143,7 +143,7 @@ namespace model {
|
|||||||
size_t User::updatePrivkey()
|
size_t User::updatePrivkey()
|
||||||
{
|
{
|
||||||
Poco::ScopedLock<Poco::Mutex> _lock(mWorkMutex);
|
Poco::ScopedLock<Poco::Mutex> _lock(mWorkMutex);
|
||||||
if (mPrivateKey.isNull()) {
|
if (mPrivateKey.isNull() || !mPrivateKey.value().size()) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
auto result = updateIntoDB("privkey", mPrivateKey.value());
|
auto result = updateIntoDB("privkey", mPrivateKey.value());
|
||||||
@ -152,7 +152,7 @@ namespace model {
|
|||||||
size_t User::updatePublickey()
|
size_t User::updatePublickey()
|
||||||
{
|
{
|
||||||
Poco::ScopedLock<Poco::Mutex> _lock(mWorkMutex);
|
Poco::ScopedLock<Poco::Mutex> _lock(mWorkMutex);
|
||||||
if (mPublicKey.isNull()) {
|
if (mPublicKey.isNull() || !mPublicKey.value().size()) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
auto result = updateIntoDB("pubkey", mPublicKey.value());
|
auto result = updateIntoDB("pubkey", mPublicKey.value());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user