Fix app categories (#6016)
* Fix app metas * Optimize categories on app store * Remove commented code * Remove console log * Update apps/web/pages/apps/index.tsx Co-authored-by: Omar López <[email protected]> * Add categories to missing app metadata * Fix type error * Type fix * Type fixes * More type fixes * Clean up * Fix build error * No leaky please * Remove comment Co-authored-by: Omar López <[email protected]> Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Bailey Pumfleet <[email protected]>
This commit is contained in:
48 files changed
+99
-63
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { Prisma } from "@prisma/client";
|
||||
|
||||
export const safeAppSelect = Prisma.validator<Prisma.AppSelect>()({
|
||||
slug: true,
|
||||
dirName: true,
|
||||
/** Omitting to avoid frontend leaks */
|
||||
// keys: true,
|
||||
categories: true,
|
||||
createdAt: true,
|
||||
updatedAt: true,
|
||||
enabled: true,
|
||||
});
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Prisma } from "@prisma/client";
|
||||
|
||||
export const safeCredentialSelect = Prisma.validator<Prisma.CredentialSelect>()({
|
||||
id: true,
|
||||
type: true,
|
||||
/** Omitting to avoid frontend leaks */
|
||||
// key: true,
|
||||
userId: true,
|
||||
appId: true,
|
||||
invalid: true,
|
||||
});
|
||||
@@ -1,3 +1,5 @@
|
||||
export { safeAppSelect } from "./app";
|
||||
export * from "./booking";
|
||||
export { safeCredentialSelect } from "./credential";
|
||||
export * from "./event-types";
|
||||
export * from "./user";
|
||||
Reference in new issue
Block a user