diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-11-18 09:07:00 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-12-10 16:44:55 +0200 |
commit | f845f18af3d3c18cbfb09ebfecac81bdb3c91953 (patch) | |
tree | 0124e44a4f5ba0da21d149f6443c412383e98e7c /mod/ci-common.cxx | |
parent | 66944ccb80e055d83b4e7df5996e5947afcf34b4 (diff) |
Return tenant archived indication from ci_start::find()
Diffstat (limited to 'mod/ci-common.cxx')
-rw-r--r-- | mod/ci-common.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mod/ci-common.cxx b/mod/ci-common.cxx index cc361d2..4b9f9f9 100644 --- a/mod/ci-common.cxx +++ b/mod/ci-common.cxx @@ -988,7 +988,7 @@ namespace brep return s; } - optional<tenant_service> ci_start:: + optional<pair<tenant_service, bool>> ci_start:: find (odb::core::database& db, const string& type, const string& id) const @@ -1007,10 +1007,9 @@ namespace brep tr.commit (); - optional<tenant_service> r; - if (t != nullptr) - r = move (t->service); + if (t == nullptr || !t->service) + return nullopt; - return r; + return pair<tenant_service, bool> (move (*t->service), t->archived); } } |