Skip to content

Commit 98ee4dc

Browse files
authored
Remove notify-moe from response (#914)
1 parent d0ce5de commit 98ee4dc

File tree

10 files changed

+1
-38
lines changed

10 files changed

+1
-38
lines changed

docs/openapi.yaml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,6 @@ $defs:
115115
minimum: 0
116116
maximum: 50000000
117117
example: 1337
118-
notify-moe:
119-
oneOf:
120-
- type: "null"
121-
- type: string
122-
minLength: 1
123-
maxLength: 50
124-
example: "-cQb5Fmmg"
125118
themoviedb:
126119
oneOf:
127120
- type: "null"
@@ -158,7 +151,6 @@ $defs:
158151
imdb: tt0164917
159152
kitsu: null
160153
livechart: null
161-
notify-moe: "-cQb5Fmmg"
162154
themoviedb: null
163155
thetvdb: null
164156
myanimelist: null
@@ -308,7 +300,6 @@ paths:
308300
- anisearch
309301
- kitsu
310302
- livechart
311-
- notify-moe
312303
- myanimelist
313304
- name: id
314305
in: query
@@ -356,7 +347,6 @@ paths:
356347
example:
357348
- anilist: 1337
358349
- anidb: 1337
359-
- notify-moe: -cQb5Fmmg
360350
oneOf:
361351
- type: object
362352
minProperties: 1
@@ -398,12 +388,6 @@ paths:
398388
- type: integer
399389
minimum: 0
400390
maximum: 50000000
401-
notify-moe:
402-
oneOf:
403-
- type: "null"
404-
- type: string
405-
minLength: 1
406-
maxLength: 50
407391
myanimelist:
408392
oneOf:
409393
- type: "null"
@@ -454,12 +438,6 @@ paths:
454438
- type: integer
455439
minimum: 0
456440
maximum: 50000000
457-
notify-moe:
458-
oneOf:
459-
- type: "null"
460-
- type: string
461-
minLength: 1
462-
maxLength: 50
463441
myanimelist:
464442
oneOf:
465443
- type: "null"

src/db/db.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export const Source = {
1515
IMDB: "imdb",
1616
Kitsu: "kitsu",
1717
LiveChart: "livechart",
18-
NotifyMoe: "notify-moe",
1918
TheMovieDB: "themoviedb",
2019
TheTVDB: "thetvdb",
2120
MAL: "myanimelist",
@@ -30,7 +29,6 @@ export type Relation = {
3029
[Source.IMDB]?: `tt${string}`
3130
[Source.Kitsu]?: number
3231
[Source.LiveChart]?: number
33-
[Source.NotifyMoe]?: string
3432
[Source.TheMovieDB]?: number
3533
[Source.TheTVDB]?: number
3634
[Source.MAL]?: number

src/routes/v2/ids/handler.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const createRelations = async <N extends number>(
1616
imdb: `tt${id++}`,
1717
kitsu: id++,
1818
livechart: id++,
19-
"notify-moe": `${id++}`,
2019
themoviedb: id++,
2120
thetvdb: id++,
2221
myanimelist: id++,
@@ -80,7 +79,6 @@ describe("query params", () => {
8079
imdb: null!,
8180
kitsu: null!,
8281
livechart: null!,
83-
"notify-moe": null!,
8482
themoviedb: null!,
8583
thetvdb: null!,
8684
myanimelist: null!,
@@ -165,7 +163,6 @@ describe("json body", () => {
165163
imdb: null!,
166164
kitsu: null!,
167165
livechart: null!,
168-
"notify-moe": null!,
169166
themoviedb: null!,
170167
thetvdb: null!,
171168
myanimelist: null!,

src/routes/v2/ids/schemas/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ export const numberIdSourceSchema = v.picklist([
1010
"myanimelist",
1111
])
1212

13-
export const stringIdSourceSchema = v.picklist(["anime-planet", "notify-moe"])
13+
export const stringIdSourceSchema = v.picklist(["anime-planet"])

src/routes/v2/ids/schemas/json-body.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const okCases = [
2222
anisearch: 1337,
2323
kitsu: 1337,
2424
livechart: 1337,
25-
"notify-moe": "1337",
2625
myanimelist: 1337,
2726
},
2827
true,

src/routes/v2/ids/schemas/json-body.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export const singularItemInputSchema = v.pipe(
1414
anisearch: numberIdSchema,
1515
kitsu: numberIdSchema,
1616
livechart: numberIdSchema,
17-
"notify-moe": stringIdSchema,
1817
myanimelist: numberIdSchema,
1918
}),
2019
),

src/routes/v2/include.test-utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ export const testIncludeQueryParam = (
7474
imdb: null,
7575
kitsu: null,
7676
livechart: null,
77-
"notify-moe": null,
7877
themoviedb: null,
7978
thetvdb: null,
8079
myanimelist: null,

src/routes/v2/special/handler.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const createRelations = async <N extends number>(
1717
imdb: `tt${specialId ?? id++}`,
1818
kitsu: id++,
1919
livechart: id++,
20-
"notify-moe": `${id++}`,
2120
themoviedb: specialId ?? id++,
2221
thetvdb: specialId ?? id++,
2322
myanimelist: id++,
@@ -71,7 +70,6 @@ describe("imdb", () => {
7170
imdb: "tt1337",
7271
kitsu: null!,
7372
livechart: null!,
74-
"notify-moe": null!,
7573
themoviedb: null!,
7674
thetvdb: null!,
7775
myanimelist: null!,
@@ -117,7 +115,6 @@ describe("thetvdb", () => {
117115
imdb: null!,
118116
kitsu: null!,
119117
livechart: null!,
120-
"notify-moe": null!,
121118
themoviedb: null!,
122119
thetvdb: 1337,
123120
myanimelist: null!,
@@ -165,7 +162,6 @@ describe("themoviedb", () => {
165162
imdb: null!,
166163
kitsu: null!,
167164
livechart: null!,
168-
"notify-moe": null!,
169165
themoviedb: 1337,
170166
thetvdb: null!,
171167
myanimelist: null!,

src/update.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ it("handles duplicates", async () => {
105105
Source.AniSearch,
106106
Source.Kitsu,
107107
Source.LiveChart,
108-
Source.NotifyMoe,
109108
Source.MAL,
110109
]
111110

src/update.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export type AnimeListsSchema = Array<{
2020
kitsu_id?: number
2121
livechart_id?: number
2222
mal_id?: number
23-
"notify.moe_id"?: string
2423
themoviedb_id?: number | "unknown"
2524
tvdb_id?: number
2625
}>
@@ -95,7 +94,6 @@ export const formatEntry = (entry: AnimeListsSchema[number]): Relation => ({
9594
kitsu: handleBadValues(entry.kitsu_id),
9695
livechart: handleBadValues(entry.livechart_id),
9796
myanimelist: handleBadValues(entry.mal_id),
98-
"notify-moe": handleBadValues(entry["notify.moe_id"]),
9997
themoviedb: handleBadValues(entry.themoviedb_id),
10098
thetvdb: handleBadValues(entry.tvdb_id),
10199
})

0 commit comments

Comments
 (0)