Skip to content

Commit 99667ba

Browse files
committed
update to latest oatpp version
1 parent 7bc3dfc commit 99667ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServiceComponent.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ServiceComponent {
2828
public:
2929
typedef oatpp::web::protocol::http::outgoing::Response OutgoingResponse;
3030
typedef oatpp::web::protocol::http::Status Status;
31-
typedef oatpp::web::protocol::http::outgoing::ResponseFactory OutgoingResponseFactory;
31+
typedef oatpp::web::protocol::http::outgoing::ResponseFactory ResponseFactory;
3232
private:
3333
std::shared_ptr<oatpp::data::mapping::ObjectMapper> m_objectMapper;
3434
public:
@@ -45,7 +45,7 @@ class ServiceComponent {
4545
error->code = 500;
4646
error->error = "Unhandled Error";
4747
error->message = message;
48-
return OutgoingResponseFactory::createShared(Status::CODE_500, error, m_objectMapper.get());
48+
return ResponseFactory::createResponse(Status::CODE_500, error, m_objectMapper.get());
4949
}
5050

5151
};

0 commit comments

Comments
 (0)