Skip to content

Commit a36a270

Browse files
committed
Update to the latest oatpp API
1 parent 5599503 commit a36a270

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

book-service/src/book-service/db/Database.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

user-service/src/user-service/db/Database.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)