mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 08:13:49 +10:00
fix eslint issues
This commit is contained in:
@ -9,6 +9,7 @@
|
||||
{
|
||||
"files": ["*.ts", "*.tsx"],
|
||||
"rules": {
|
||||
// @typescript-eslint
|
||||
"@typescript-eslint/no-extraneous-class": "off"
|
||||
}
|
||||
},
|
||||
|
||||
@ -126,7 +126,7 @@ export class ResumeService {
|
||||
}
|
||||
}
|
||||
|
||||
async lock(userId: string, id: string, set: boolean) {
|
||||
lock(userId: string, id: string, set: boolean) {
|
||||
return this.prisma.resume.update({
|
||||
data: { locked: set },
|
||||
where: { userId_id: { userId, id } },
|
||||
|
||||
@ -69,11 +69,11 @@ export class UserService {
|
||||
return user;
|
||||
}
|
||||
|
||||
async create(data: Prisma.UserCreateInput) {
|
||||
create(data: Prisma.UserCreateInput) {
|
||||
return this.prisma.user.create({ data, include: { secrets: true } });
|
||||
}
|
||||
|
||||
async updateByEmail(email: string, data: Prisma.UserUpdateArgs["data"]) {
|
||||
updateByEmail(email: string, data: Prisma.UserUpdateArgs["data"]) {
|
||||
return this.prisma.user.update({ where: { email }, data });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user