refactor(server): upload config (#3148)

This commit is contained in:
Jason Rasmussen
2023-07-09 00:37:40 -04:00
committed by GitHub
parent 8349a28ed8
commit 398bd04ffd
23 changed files with 473 additions and 624 deletions

View File

@@ -1,11 +1,12 @@
import { ICryptoRepository } from '@app/domain';
import { Injectable } from '@nestjs/common';
import { compareSync, hash } from 'bcrypt';
import { createHash, randomBytes } from 'crypto';
import { createHash, randomBytes, randomUUID } from 'crypto';
import { createReadStream } from 'fs';
@Injectable()
export class CryptoRepository implements ICryptoRepository {
randomUUID = randomUUID;
randomBytes = randomBytes;
hashBcrypt = hash;