MCPcopy Index your code
hub / github.com/ether/etherpad / checkGroupPad

Function checkGroupPad

src/node/db/API.ts:1045–1051  ·  view source on GitHub ↗
(padID: string, field: string)

Source from the content-addressed store, hash-verified

1043
1044// checks if a padID is part of a group
1045const checkGroupPad = (padID: string, field: string) => {
1046 // ensure this is a group pad
1047 if (padID && padID.indexOf('$') === -1) {
1048 throw new CustomError(
1049 `You can only get/set the ${field} of pads that belong to a group`, 'apierror');
1050 }
1051};

Callers 1

API.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected