-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(backend/services): Switch Riot icon to SVG (#197)
* fix: Riot icon to SVG * fix: naming
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
backend/back/src/services/seed/1699116526789-ChangeRiotLogoToSvg.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm"; | ||
|
||
export class ChangeRiotLogoToSvg1699116526789 implements MigrationInterface { | ||
private readonly PREVIOUS_RIOT_IMAGE = "https://i.pinimg.com/originals/90/6d/23/906d231cbaff55c77fb97191592e1c76.png"; | ||
private readonly NEW_RIOT_IMAGE = "https://asset.brandfetch.io/idtxF1ugCc/idSaLQdGtL.svg"; | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`UPDATE service | ||
SET image_url = '${this.NEW_RIOT_IMAGE}' | ||
WHERE id = 'riot'`, | ||
); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`UPDATE service | ||
SET image_url = '${this.PREVIOUS_RIOT_IMAGE}' | ||
WHERE id = 'riot'`, | ||
); | ||
} | ||
} |