run prettier (#7172)

This commit is contained in:
dblythy
2021-02-12 20:18:49 +11:00
committed by GitHub
parent dc1133d355
commit e53b6c2f87
5 changed files with 28 additions and 23 deletions

View File

@@ -9,8 +9,7 @@ export class LiveQueryController {
if (!config || !config.classNames) {
this.classNames = new Set();
} else if (config.classNames instanceof Array) {
const classNames = config.classNames
.map(name => new RegExp("^" + name + "$"));
const classNames = config.classNames.map(name => new RegExp('^' + name + '$'));
this.classNames = new Set(classNames);
} else {
throw 'liveQuery.classes should be an array of string';

View File

@@ -308,15 +308,17 @@ export class UserController extends AdaptableController {
// Mark this private
function updateUserPassword(user, password, config) {
return rest.update(
config,
Auth.master(config),
'_User',
{ objectId: user.objectId },
{
password: password,
}
).then(() => user);
return rest
.update(
config,
Auth.master(config),
'_User',
{ objectId: user.objectId },
{
password: password,
}
)
.then(() => user);
}
function buildEmailLink(destination, username, token, config) {