mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -04:00
Moved to ts for other dependencies.
This commit is contained in:
parent
3c2129b1cc
commit
7b99edc471
47 changed files with 1056 additions and 1363 deletions
|
@ -61,11 +61,11 @@ export const getPadId = async (readOnlyId) => await db.get(`readonly2pad:${readO
|
|||
* @param {String} id padIdOrReadonlyPadId read only id or real pad id
|
||||
*/
|
||||
export const getIds = async (id: string) => {
|
||||
const readonly = exports.isReadOnlyId(id);
|
||||
const readonly = isReadOnlyId(id);
|
||||
|
||||
// Might be null, if this is an unknown read-only id
|
||||
const readOnlyPadId = readonly ? id : await exports.getReadOnlyId(id);
|
||||
const padId = readonly ? await exports.getPadId(id) : id;
|
||||
const readOnlyPadId = readonly ? id : await getReadOnlyId(id);
|
||||
const padId = readonly ? await getPadId(id) : id;
|
||||
|
||||
return {readOnlyPadId, padId, readonly};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue