3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 20:35:02 +00:00

Run prettier and check tslint on entire codebase

Mainly to run these checks for the recent pull requests.
This commit is contained in:
Dragory 2020-01-12 11:47:54 +02:00
parent 65880d2e60
commit 1aceb55a87
15 changed files with 89 additions and 60 deletions

View file

@ -50,6 +50,9 @@ export class GuildLogs extends EventEmitter {
}
clearIgnoredLog(type: LogType, ignoreId: any) {
this.ignoredLogs.splice(this.ignoredLogs.findIndex(info => type === info.type && ignoreId === info.ignoreId), 1);
this.ignoredLogs.splice(
this.ignoredLogs.findIndex(info => type === info.type && ignoreId === info.ignoreId),
1,
);
}
}

View file

@ -41,7 +41,7 @@ export class GuildReminders extends BaseGuildRepository {
channel_id: channelId,
remind_at: remindAt,
body,
created_at
created_at,
});
}
}

View file

@ -19,7 +19,10 @@ export class ApiLogin {
@Column()
expires_at: string;
@ManyToOne(type => ApiUserInfo, userInfo => userInfo.logins)
@ManyToOne(
type => ApiUserInfo,
userInfo => userInfo.logins,
)
@JoinColumn({ name: "user_id" })
userInfo: ApiUserInfo;
}

View file

@ -18,7 +18,10 @@ export class ApiPermissionAssignment {
@Column("simple-array")
permissions: string[];
@ManyToOne(type => ApiUserInfo, userInfo => userInfo.permissionAssignments)
@ManyToOne(
type => ApiUserInfo,
userInfo => userInfo.permissionAssignments,
)
@JoinColumn({ name: "target_id" })
userInfo: ApiUserInfo;
}

View file

@ -20,9 +20,15 @@ export class ApiUserInfo {
@Column()
updated_at: string;
@OneToMany(type => ApiLogin, login => login.userInfo)
@OneToMany(
type => ApiLogin,
login => login.userInfo,
)
logins: ApiLogin[];
@OneToMany(type => ApiPermissionAssignment, p => p.userInfo)
@OneToMany(
type => ApiPermissionAssignment,
p => p.userInfo,
)
permissionAssignments: ApiPermissionAssignment[];
}

View file

@ -29,6 +29,9 @@ export class Case {
@Column() pp_name: string;
@OneToMany(type => CaseNote, note => note.case)
@OneToMany(
type => CaseNote,
note => note.case,
)
notes: CaseNote[];
}

View file

@ -15,7 +15,10 @@ export class CaseNote {
@Column() created_at: string;
@ManyToOne(type => Case, theCase => theCase.notes)
@ManyToOne(
type => Case,
theCase => theCase.notes,
)
@JoinColumn({ name: "case_id" })
case: Case;
}

View file

@ -16,5 +16,5 @@ export class Reminder {
@Column() body: string;
@Column() created_at: string
@Column() created_at: string;
}