MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / getUser

Function getUser

api-ugc/src/noteRouter.ts:8–10  ·  view source on GitHub ↗
(result: Result<UserId, string>)

Source from the content-addressed store, hash-verified

6import type { Result } from 'shared/result'
7
8function getUser(result: Result<UserId, string>) {
9 return result.tag === 'Ok' ? result.ok : null
10}
11
12export const noteRouter = {
13 getNote: publicProcedure

Callers 3

preloadFunction · 0.90
UserFunction · 0.90
noteRouter.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected