In-app store, torrential backend, locales (#332)
* feat: add store nav and fixes * fix: reduce password requirement & new task error ui * fix: client webtoken fix * fix: delta versions and dockerfile * fix: use setup platforms for filter & display * fix: setup not accounted when returning valid options * feat: tighter delta version support * feat: dl/disk size * feat: offload manifest generation to torrential * fix: bump torrential * feat: remove droplet * feat: bump torrential * feat: convert locales
This commit is contained in:
@@ -32,6 +32,11 @@ export default defineEventHandler(async (h3) => {
|
||||
if (options instanceof ArkErrors)
|
||||
throw createError({ statusCode: 400, statusMessage: options.summary });
|
||||
|
||||
const filterPlatforms = options.platform
|
||||
?.split(",")
|
||||
.map(parsePlatform)
|
||||
.filter((e) => e !== undefined);
|
||||
|
||||
/**
|
||||
* Generic filters
|
||||
*/
|
||||
@@ -46,23 +51,27 @@ export default defineEventHandler(async (h3) => {
|
||||
},
|
||||
}
|
||||
: undefined;
|
||||
const platformFilter = options.platform
|
||||
? {
|
||||
const platformFilter = filterPlatforms
|
||||
? ({
|
||||
versions: {
|
||||
some: {
|
||||
launches: {
|
||||
some: {
|
||||
platform: {
|
||||
in: options.platform
|
||||
.split(",")
|
||||
.map(parsePlatform)
|
||||
.filter((e) => e !== undefined),
|
||||
in: filterPlatforms,
|
||||
},
|
||||
},
|
||||
},
|
||||
setups: {
|
||||
some: {
|
||||
platform: {
|
||||
in: filterPlatforms,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
} satisfies Prisma.GameWhereInput)
|
||||
: undefined;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user