aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/ci-common.cxx15
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);
+ }
}
}