From 7b7bb879b5757f910f7386b07f1998a4445e31a8 Mon Sep 17 00:00:00 2001 From: naskya Date: Sun, 24 Sep 2023 14:54:38 +0900 Subject: [PATCH] chore: use forked repo url --- .../backend/migration/1689957674000-firefish-repo.js | 11 ++--------- packages/backend/src/models/entities/meta.ts | 2 +- packages/backend/src/server/api/endpoints/meta.ts | 2 +- packages/backend/src/server/api/openapi/gen-spec.ts | 4 ++-- 4 files changed, 6 insertions(+), 13 deletions(-) diff --git a/packages/backend/migration/1689957674000-firefish-repo.js b/packages/backend/migration/1689957674000-firefish-repo.js index fb45538d..1b376511 100644 --- a/packages/backend/migration/1689957674000-firefish-repo.js +++ b/packages/backend/migration/1689957674000-firefish-repo.js @@ -3,19 +3,12 @@ export class FirefishRepo1689957674000 { async up(queryRunner) { await queryRunner.query( - `UPDATE meta SET "repositoryUrl" = 'https://git.joinfirefish.org/firefish/firefish'`, + `UPDATE meta SET "repositoryUrl" = 'https://code.naskya.net/naskya/firefish'`, ); await queryRunner.query( `UPDATE meta SET "feedbackUrl" = 'https://git.joinfirefish.org/firefish/firefish/issues'`, ); } - async down(queryRunner) { - await queryRunner.query( - `UPDATE meta SET "repositoryUrl" = 'https://codeberg.org/firefish/firefish'`, - ); - await queryRunner.query( - `UPDATE meta SET "feedbackUrl" = 'https://codeberg.org/firefish/firefish/issues'`, - ); - } + async down(queryRunner) {} } diff --git a/packages/backend/src/models/entities/meta.ts b/packages/backend/src/models/entities/meta.ts index 794aae4f..fe5ac91f 100644 --- a/packages/backend/src/models/entities/meta.ts +++ b/packages/backend/src/models/entities/meta.ts @@ -436,7 +436,7 @@ export class Meta { @Column("varchar", { length: 512, - default: "https://git.joinfirefish.org/firefish/firefish", + default: "https://code.naskya.net/naskya/firefish", nullable: false, }) public repositoryUrl: string; diff --git a/packages/backend/src/server/api/endpoints/meta.ts b/packages/backend/src/server/api/endpoints/meta.ts index fc8235ea..271f3c51 100644 --- a/packages/backend/src/server/api/endpoints/meta.ts +++ b/packages/backend/src/server/api/endpoints/meta.ts @@ -68,7 +68,7 @@ export const meta = { type: "string", optional: false, nullable: false, - default: "https://git.joinfirefish.org/firefish/firefish", + default: "https://code.naskya.net/naskya/firefish", }, feedbackUrl: { type: "string", diff --git a/packages/backend/src/server/api/openapi/gen-spec.ts b/packages/backend/src/server/api/openapi/gen-spec.ts index ee14f249..c40c4303 100644 --- a/packages/backend/src/server/api/openapi/gen-spec.ts +++ b/packages/backend/src/server/api/openapi/gen-spec.ts @@ -15,7 +15,7 @@ export function genOpenapiSpec() { externalDocs: { description: "Repository", - url: "https://git.joinfirefish.org/firefish/firefish", + url: "https://code.naskya.net/naskya/firefish", }, servers: [ @@ -106,7 +106,7 @@ export function genOpenapiSpec() { description: desc, externalDocs: { description: "Source code", - url: `https://git.joinfirefish.org/firefish/firefish/src/branch/develop/packages/backend/src/server/api/endpoints/${endpoint.name}.ts`, + url: `https://code.naskya.net/naskya/firefish/src/branch/main/packages/backend/src/server/api/endpoints/${endpoint.name}.ts`, }, tags: endpoint.meta.tags || undefined, security,