We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4020943 commit 019c0beCopy full SHA for 019c0be
src/routes/v2/include.ts
@@ -10,7 +10,7 @@ export const includeSchema = v.object({
10
v.string(),
11
v.regex(/^[\-a-z,]+$/, "Invalid `include` query"),
12
v.transform((value) => value.split(",")),
13
- v.transform((sources) => (sources.length > 1 ? Array.from(new Set(sources)) : sources)),
+ v.transform((sources) => (sources.length > 1 ? [...new Set(sources)] : sources)),
14
v.minLength(1),
15
v.maxLength(allSources.length),
16
),
0 commit comments