Skip to content

Commit 3b2b7df

Browse files
committed
Update to the latest oatpp API
1 parent e1bc1dd commit 3b2b7df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/db/Database.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ UserDto::ObjectWrapper Database::getUserById(v_int32 id){
6060
std::lock_guard<oatpp::concurrency::SpinLock> lock(m_lock);
6161
auto it = m_usersById.find(id);
6262
if(it == m_usersById.end()){
63-
return UserDto::ObjectWrapper::empty();
63+
return nullptr;
6464
}
6565
return deserializeToDto(it->second);
6666
}

0 commit comments

Comments
 (0)