We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1bc1dd commit 3b2b7dfCopy full SHA for 3b2b7df
src/db/Database.cpp
@@ -60,7 +60,7 @@ UserDto::ObjectWrapper Database::getUserById(v_int32 id){
60
std::lock_guard<oatpp::concurrency::SpinLock> lock(m_lock);
61
auto it = m_usersById.find(id);
62
if(it == m_usersById.end()){
63
- return UserDto::ObjectWrapper::empty();
+ return nullptr;
64
}
65
return deserializeToDto(it->second);
66
0 commit comments