Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
123456789101112131415type Attributed<U> = { createdByUser: U | null; updatedByUser: U | null;};
/** The last editor, only when it is someone other than the author. */export function distinctEditor<U extends { id: number }>( row: Attributed<U>,): U | null { const { createdByUser, updatedByUser } = row; return updatedByUser && updatedByUser.id !== createdByUser?.id ? updatedByUser : null;}