MCPcopy Create free account
hub / github.com/ether/etherpad / getIds

Function getIds

src/node/db/ReadOnlyManager.ts:67–75  ·  view source on GitHub ↗
(id:string)

Source from the content-addressed store, hash-verified

65 * @return {Object} an object with the padId and readonlyPadId
66 */
67const getIds = async (id:string) => {
68 const readonly = isReadOnlyId(id);
69
70 // Might be null, if this is an unknown read-only id
71 const readOnlyPadId = readonly ? id : await getReadOnlyId(id);
72 const padId = readonly ? await getPadId(id) : id;
73
74 return {readOnlyPadId, padId, readonly};
75};
76
77export default {
78 isReadOnlyId,

Callers

nothing calls this directly

Calls 3

isReadOnlyIdFunction · 0.85
getReadOnlyIdFunction · 0.85
getPadIdFunction · 0.85

Tested by

no test coverage detected