aboutsummaryrefslogtreecommitdiff
path: root/mod/ci-common.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-11-18 09:07:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-12-10 16:44:55 +0200
commitf845f18af3d3c18cbfb09ebfecac81bdb3c91953 (patch)
tree0124e44a4f5ba0da21d149f6443c412383e98e7c /mod/ci-common.hxx
parent66944ccb80e055d83b4e7df5996e5947afcf34b4 (diff)
Return tenant archived indication from ci_start::find()
Diffstat (limited to 'mod/ci-common.hxx')
-rw-r--r--mod/ci-common.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/ci-common.hxx b/mod/ci-common.hxx
index 6d21ba5..36d5f0e 100644
--- a/mod/ci-common.hxx
+++ b/mod/ci-common.hxx
@@ -236,11 +236,12 @@ namespace brep
build_state)> = nullptr) const;
// Find the tenant given the tenant service type and id and return the
- // associated data or nullopt if there is no such tenant.
+ // associated data plus the indication of whether the tenant is archived,
+ // or nullopt if there is no such tenant.
//
// Note: should be called out of the database transaction.
//
- optional<tenant_service>
+ optional<pair<tenant_service, bool /*archived*/>>
find (odb::core::database&,
const string& type,
const string& id) const;