cal/packages/prisma/selects/credential.ts
Joe Au-Yeung 540bf3a1cb
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 <zomars@me.com>

* 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 <zomars@me.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Bailey Pumfleet <bailey@pumfleet.co.uk>
2022-12-20 15:15:06 -07:00

12 lines
260 B
TypeScript

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,
});