cal.pub0.org/packages/app-store/slackmessaging/lib/WhereCredsEqualsID.ts

10 lines
175 B
TypeScript

export const WhereCredsEqualsId = (userId: string) => ({
where: {
type: "slack_app",
key: {
path: ["authed_user", "id"],
equals: userId,
},
},
});