mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 01:16:15 -04:00
Added backend in typescript. (#6185)
This commit is contained in:
parent
c2b9df3b24
commit
295a2a758b
18 changed files with 211 additions and 118 deletions
|
@ -105,7 +105,7 @@ const padList = new class {
|
|||
* @param {string} [authorId] - Optional author ID of the user that initiated the pad creation (if
|
||||
* applicable).
|
||||
*/
|
||||
exports.getPad = async (id: string, text: string, authorId:string = '') => {
|
||||
exports.getPad = async (id: string, text: string|null, authorId:string = '') => {
|
||||
// check if this is a valid padId
|
||||
if (!exports.isValidPadId(id)) {
|
||||
throw new CustomError(`${id} is not a valid padId`, 'apierror');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue