Skip to content

Commit 7f7a9d9

Browse files
style: check and fix w/ biome
1 parent 73bc4ad commit 7f7a9d9

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

apps/backend/src/v1/guild/service.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ export async function updateGuildSeason(
3939
season_id: number,
4040
db: Knex = knexDb,
4141
): Promise<number> {
42-
const affected_rows = await db<GuildSeasonRecord>(
43-
"GuildSeason",
44-
)
42+
const affected_rows = await db<GuildSeasonRecord>("GuildSeason")
4543
.update({ season_id })
4644
.where({ guild_id });
4745
return affected_rows;

apps/backend/src/v1/guild/test/integration.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,7 @@ describe("GuildSeason table operations", () => {
184184
"No rows affected when updating a `GuildSeason` that does not exist",
185185
).toBe(0);
186186
await expect(
187-
updateGuildSeason(
188-
guild_season_record.guild_id,
189-
69420,
190-
test_knexDb,
191-
),
187+
updateGuildSeason(guild_season_record.guild_id, 69420, test_knexDb),
192188
"Cannot update a `GuildSeason` to a `season_id` that does not exist",
193189
).rejects.toThrowError("FOREIGN");
194190
});

0 commit comments

Comments
 (0)