mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
fix fmt
This commit is contained in:
parent
f510fdae5c
commit
08411211ab
@ -12,7 +12,10 @@ export default class PositiveNumber {
|
||||
|
||||
public constructor(positiveNumber: number | string) {
|
||||
if (typeof positiveNumber === Typeof.String) {
|
||||
positiveNumber = Number.parseInt(positiveNumber.toString().trim(), 10);
|
||||
positiveNumber = Number.parseInt(
|
||||
positiveNumber.toString().trim(),
|
||||
10
|
||||
);
|
||||
if (isNaN(positiveNumber)) {
|
||||
throw new BadDataException(`Invalid number: ${positiveNumber}`);
|
||||
}
|
||||
|
@ -186,7 +186,9 @@ router.post(
|
||||
const alreadySavedUser: StatusPagePrivateUser | null =
|
||||
await StatusPagePrivateUserService.findOneBy({
|
||||
query: {
|
||||
statusPageId: new ObjectID(data['statusPageId'].toString()),
|
||||
statusPageId: new ObjectID(
|
||||
data['statusPageId'].toString()
|
||||
),
|
||||
resetPasswordToken:
|
||||
(user.resetPasswordToken as string) || '',
|
||||
},
|
||||
@ -340,7 +342,11 @@ router.post(
|
||||
|
||||
const alreadySavedUser: StatusPagePrivateUser | null =
|
||||
await StatusPagePrivateUserService.findOneBy({
|
||||
query: { email: user.email!, password: user.password!, statusPageId: user.statusPageId! },
|
||||
query: {
|
||||
email: user.email!,
|
||||
password: user.password!,
|
||||
statusPageId: user.statusPageId!,
|
||||
},
|
||||
select: {
|
||||
_id: true,
|
||||
password: true,
|
||||
|
Loading…
Reference in New Issue
Block a user