diff --git a/docs/openapi.yaml b/docs/openapi.yaml index 5e6b60748..dea67fb78 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -115,13 +115,6 @@ $defs: minimum: 0 maximum: 50000000 example: 1337 - notify-moe: - oneOf: - - type: "null" - - type: string - minLength: 1 - maxLength: 50 - example: "-cQb5Fmmg" themoviedb: oneOf: - type: "null" @@ -158,7 +151,6 @@ $defs: imdb: tt0164917 kitsu: null livechart: null - notify-moe: "-cQb5Fmmg" themoviedb: null thetvdb: null myanimelist: null @@ -308,7 +300,6 @@ paths: - anisearch - kitsu - livechart - - notify-moe - myanimelist - name: id in: query @@ -356,7 +347,6 @@ paths: example: - anilist: 1337 - anidb: 1337 - - notify-moe: -cQb5Fmmg oneOf: - type: object minProperties: 1 @@ -398,12 +388,6 @@ paths: - type: integer minimum: 0 maximum: 50000000 - notify-moe: - oneOf: - - type: "null" - - type: string - minLength: 1 - maxLength: 50 myanimelist: oneOf: - type: "null" @@ -454,12 +438,6 @@ paths: - type: integer minimum: 0 maximum: 50000000 - notify-moe: - oneOf: - - type: "null" - - type: string - minLength: 1 - maxLength: 50 myanimelist: oneOf: - type: "null" diff --git a/src/db/db.ts b/src/db/db.ts index cc63f5b72..e17aaf96a 100644 --- a/src/db/db.ts +++ b/src/db/db.ts @@ -15,7 +15,6 @@ export const Source = { IMDB: "imdb", Kitsu: "kitsu", LiveChart: "livechart", - NotifyMoe: "notify-moe", TheMovieDB: "themoviedb", TheTVDB: "thetvdb", MAL: "myanimelist", @@ -30,7 +29,6 @@ export type Relation = { [Source.IMDB]?: `tt${string}` [Source.Kitsu]?: number [Source.LiveChart]?: number - [Source.NotifyMoe]?: string [Source.TheMovieDB]?: number [Source.TheTVDB]?: number [Source.MAL]?: number diff --git a/src/routes/v2/ids/handler.test.ts b/src/routes/v2/ids/handler.test.ts index 1b98e78e1..77df1ebb1 100644 --- a/src/routes/v2/ids/handler.test.ts +++ b/src/routes/v2/ids/handler.test.ts @@ -16,7 +16,6 @@ const createRelations = async ( imdb: `tt${id++}`, kitsu: id++, livechart: id++, - "notify-moe": `${id++}`, themoviedb: id++, thetvdb: id++, myanimelist: id++, @@ -80,7 +79,6 @@ describe("query params", () => { imdb: null!, kitsu: null!, livechart: null!, - "notify-moe": null!, themoviedb: null!, thetvdb: null!, myanimelist: null!, @@ -165,7 +163,6 @@ describe("json body", () => { imdb: null!, kitsu: null!, livechart: null!, - "notify-moe": null!, themoviedb: null!, thetvdb: null!, myanimelist: null!, diff --git a/src/routes/v2/ids/schemas/common.ts b/src/routes/v2/ids/schemas/common.ts index ddc18254e..b7644aca7 100644 --- a/src/routes/v2/ids/schemas/common.ts +++ b/src/routes/v2/ids/schemas/common.ts @@ -10,4 +10,4 @@ export const numberIdSourceSchema = v.picklist([ "myanimelist", ]) -export const stringIdSourceSchema = v.picklist(["anime-planet", "notify-moe"]) +export const stringIdSourceSchema = v.picklist(["anime-planet"]) diff --git a/src/routes/v2/ids/schemas/json-body.test.ts b/src/routes/v2/ids/schemas/json-body.test.ts index cd3391272..001943afe 100644 --- a/src/routes/v2/ids/schemas/json-body.test.ts +++ b/src/routes/v2/ids/schemas/json-body.test.ts @@ -22,7 +22,6 @@ const okCases = [ anisearch: 1337, kitsu: 1337, livechart: 1337, - "notify-moe": "1337", myanimelist: 1337, }, true, diff --git a/src/routes/v2/ids/schemas/json-body.ts b/src/routes/v2/ids/schemas/json-body.ts index f2213cc38..c686debe1 100644 --- a/src/routes/v2/ids/schemas/json-body.ts +++ b/src/routes/v2/ids/schemas/json-body.ts @@ -14,7 +14,6 @@ export const singularItemInputSchema = v.pipe( anisearch: numberIdSchema, kitsu: numberIdSchema, livechart: numberIdSchema, - "notify-moe": stringIdSchema, myanimelist: numberIdSchema, }), ), diff --git a/src/routes/v2/include.test-utils.ts b/src/routes/v2/include.test-utils.ts index c5fb195a8..f07b1a9dc 100644 --- a/src/routes/v2/include.test-utils.ts +++ b/src/routes/v2/include.test-utils.ts @@ -74,7 +74,6 @@ export const testIncludeQueryParam = ( imdb: null, kitsu: null, livechart: null, - "notify-moe": null, themoviedb: null, thetvdb: null, myanimelist: null, diff --git a/src/routes/v2/special/handler.test.ts b/src/routes/v2/special/handler.test.ts index 982a9899a..dfa67eea7 100644 --- a/src/routes/v2/special/handler.test.ts +++ b/src/routes/v2/special/handler.test.ts @@ -17,7 +17,6 @@ const createRelations = async ( imdb: `tt${specialId ?? id++}`, kitsu: id++, livechart: id++, - "notify-moe": `${id++}`, themoviedb: specialId ?? id++, thetvdb: specialId ?? id++, myanimelist: id++, @@ -71,7 +70,6 @@ describe("imdb", () => { imdb: "tt1337", kitsu: null!, livechart: null!, - "notify-moe": null!, themoviedb: null!, thetvdb: null!, myanimelist: null!, @@ -117,7 +115,6 @@ describe("thetvdb", () => { imdb: null!, kitsu: null!, livechart: null!, - "notify-moe": null!, themoviedb: null!, thetvdb: 1337, myanimelist: null!, @@ -165,7 +162,6 @@ describe("themoviedb", () => { imdb: null!, kitsu: null!, livechart: null!, - "notify-moe": null!, themoviedb: 1337, thetvdb: null!, myanimelist: null!, diff --git a/src/update.test.ts b/src/update.test.ts index c32e45967..5c2af1767 100644 --- a/src/update.test.ts +++ b/src/update.test.ts @@ -105,7 +105,6 @@ it("handles duplicates", async () => { Source.AniSearch, Source.Kitsu, Source.LiveChart, - Source.NotifyMoe, Source.MAL, ] diff --git a/src/update.ts b/src/update.ts index 8eac8a1dc..ece590986 100644 --- a/src/update.ts +++ b/src/update.ts @@ -20,7 +20,6 @@ export type AnimeListsSchema = Array<{ kitsu_id?: number livechart_id?: number mal_id?: number - "notify.moe_id"?: string themoviedb_id?: number | "unknown" tvdb_id?: number }> @@ -95,7 +94,6 @@ export const formatEntry = (entry: AnimeListsSchema[number]): Relation => ({ kitsu: handleBadValues(entry.kitsu_id), livechart: handleBadValues(entry.livechart_id), myanimelist: handleBadValues(entry.mal_id), - "notify-moe": handleBadValues(entry["notify.moe_id"]), themoviedb: handleBadValues(entry.themoviedb_id), thetvdb: handleBadValues(entry.tvdb_id), })