File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
book-service/src/book-service/db
user-service/src/user-service/db Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ dto::BookDto::ObjectWrapper Database::getBookById(v_int64 id) {
4848 std::lock_guard<oatpp::concurrency::SpinLock> lock (m_lock);
4949 auto it = m_booksById.find (id);
5050 if (it == m_booksById.end ()) {
51- return dto::BookDto::ObjectWrapper::empty () ;
51+ return nullptr ;
5252 }
5353 return deserializeToDto (it->second );
5454}
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ dto::UserDto::ObjectWrapper Database::getUserById(v_int64 id) {
4646 std::lock_guard<oatpp::concurrency::SpinLock> lock (m_lock);
4747 auto it = m_usersById.find (id);
4848 if (it == m_usersById.end ()) {
49- return dto::UserDto::ObjectWrapper::empty () ;
49+ return nullptr ;
5050 }
5151 return deserializeToDto (it->second );
5252}
You can’t perform that action at this time.
0 commit comments