MCPcopy Create free account
hub / github.com/SeldonIO/seldon-server / withMandatory

Function withMandatory

client/js-client/src/rlClient.js:201–207  ·  view source on GitHub ↗
(name, value, callback)

Source from the content-addressed store, hash-verified

199 }
200
201 function withMandatory(name, value, callback) {
202 if (!value) {
203 return { fired: false, message: "No " + name + " specified." };
204 }
205 callback();
206 return { fired: true };
207 }
208
209 function addAction(type, callback, user_id, item_id, rlabs, source, rectag, pos, click_only, extra_data) {
210 return withMandatory("user_id", user_id, function () {

Callers 5

addActionFunction · 0.85
recommendedUsersFunction · 0.85
addUserFunction · 0.85
addItemFunction · 0.85
recommendationsForFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected