Skip to content

Commit c961e68

Browse files
committed
cds v9 7
1 parent 3695328 commit c961e68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

example-cap-server/srv/service/check-service.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const HIGH_VALUE_RESPONSES = ["well done", "full success", "huzzah", "celebratio
1313
const HIGH_BOUNDARY = 100;
1414

1515
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.
1618
const { "CheckService.priority": priority } = (context.model ?? srv.model).definitions;
1719
const isFtsToggled = Boolean(priority["@marked"]);
1820
const value = toggles.getFeatureValue(CHECK_API_PRIORITY, { user: context.user.id, tenant: context.tenant });

0 commit comments

Comments
 (0)