mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-16 12:33:17 +00:00
add auth docs, add eslint import/order
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { Injectable, Logger } from '@nestjs/common'
|
||||
import { UsersRepository } from '../infrastructure/users.repository'
|
||||
import * as bcrypt from 'bcrypt'
|
||||
import { MailerService } from '@nestjs-modules/mailer'
|
||||
import * as bcrypt from 'bcrypt'
|
||||
|
||||
import { UsersRepository } from '../infrastructure/users.repository'
|
||||
|
||||
@Injectable()
|
||||
export class UsersService {
|
||||
@@ -23,6 +24,7 @@ export class UsersService {
|
||||
|
||||
async deleteAllUsers(): Promise<{ deleted: number }> {
|
||||
const deleted = await this.usersRepository.deleteAllUsers()
|
||||
|
||||
return { deleted }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user