We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3695328 commit c961e68Copy full SHA for c961e68
example-cap-server/srv/service/check-service.js
@@ -13,6 +13,8 @@ const HIGH_VALUE_RESPONSES = ["well done", "full success", "huzzah", "celebratio
13
const HIGH_BOUNDARY = 100;
14
15
const priorityHandler = (srv) => async (context) => {
16
+ // NOTE: srv.model is the base service model without extensions, context.model is the extended service model if
17
+ // features are active otherwise undefined.
18
const { "CheckService.priority": priority } = (context.model ?? srv.model).definitions;
19
const isFtsToggled = Boolean(priority["@marked"]);
20
const value = toggles.getFeatureValue(CHECK_API_PRIORITY, { user: context.user.id, tenant: context.tenant });
0 commit comments