build(deps): bump node to 14.17 and drop uuid in favor of native randomUUID (#1792)

This commit is contained in:
TheCatLady
2021-06-17 00:12:09 -04:00
committed by GitHub
parent c8b5a200d3
commit 0db0d4c280
12 changed files with 17 additions and 24 deletions

View File

@@ -1,4 +1,5 @@
import bcrypt from 'bcrypt';
import { randomUUID } from 'crypto';
import path from 'path';
import { default as generatePassword } from 'secure-random-password';
import {
@@ -15,7 +16,6 @@ import {
RelationCount,
UpdateDateColumn,
} from 'typeorm';
import { v4 as uuid } from 'uuid';
import { MediaRequestStatus, MediaType } from '../constants/media';
import { UserType } from '../constants/user';
import { QuotaResponse } from '../interfaces/api/userInterfaces';
@@ -189,7 +189,7 @@ export class User {
}
public async resetPassword(): Promise<void> {
const guid = uuid();
const guid = randomUUID();
this.resetPasswordGuid = guid;
// 24 hours into the future