diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-11-05 10:29:33 +0200 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-11-05 15:27:37 +0200 |
commit | 153f38c301f48dc4c1c363ab81ca5a938fc83a7a (patch) | |
tree | 5c49925fecfd98ac6ed6f7180724ae5aea69218f | |
parent | 9748779eba0df8bd0d2f592fbbb9839348b80dfe (diff) |
Update tenant service data in ci_start::rebuild()
-rw-r--r-- | mod/ci-common.cxx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/mod/ci-common.cxx b/mod/ci-common.cxx index 164cace..c7dfdb9 100644 --- a/mod/ci-common.cxx +++ b/mod/ci-common.cxx @@ -859,10 +859,17 @@ namespace brep if (uf != nullptr) { - // @@ TODO: - // - // - get tenant from build object? - // - call function and update tenant if necessary. + shared_ptr<build_tenant> t (db.load<build_tenant> (b->tenant)); + + assert (t->service); + + tenant_service& ts (*t->service); + + if (optional<string> data = uf (ts, s)) + { + ts.data = move (*data); + db.update (t); + } } } |