mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-11 20:55:01 +00:00
Reformat all files with Prettier
This commit is contained in:
parent
0cde0d46d2
commit
ac79eb09f5
206 changed files with 727 additions and 888 deletions
|
@ -123,7 +123,7 @@ export class GuildCases extends BaseGuildRepository {
|
|||
guild_id: this.guildId,
|
||||
case_number: () => `(SELECT IFNULL(MAX(case_number)+1, 1) FROM cases AS ma2 WHERE guild_id = ${this.guildId})`,
|
||||
})
|
||||
.catch(err => {
|
||||
.catch((err) => {
|
||||
if (err?.code === "ER_DUP_ENTRY") {
|
||||
if (data.audit_log_id) {
|
||||
console.trace(`Tried to insert case with duplicate audit_log_id`);
|
||||
|
@ -148,7 +148,7 @@ export class GuildCases extends BaseGuildRepository {
|
|||
}
|
||||
|
||||
async softDelete(id: number, deletedById: string, deletedByName: string, deletedByText: string) {
|
||||
return connection.transaction(async entityManager => {
|
||||
return connection.transaction(async (entityManager) => {
|
||||
const cases = entityManager.getRepository(Case);
|
||||
const caseNotes = entityManager.getRepository(CaseNote);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue