Closed Atulin closed 6 months ago
Generating TS clients results in this curious code:
export interface FolderStory { folder: Folder | null; folderId: number; story: Story | null; storyId: number; added: string; addedBy: OgmaUser | null; addedById: number; } export interface ClubMember { member: OgmaUser; memberId: number; club: Club; clubId: number; role: EClubMemberRoles; memberSince: string; } // snip export interface BlacklistedRating { user: OgmaUser | null; userId: number; rating: Rating | null; ratingId: number; } export interface BlacklistedTag { user: OgmaUser | null; userId: number; tag: Tag | null; tagId: number; }
with Folder, Story, OgmaUser, Rating, and Tag requiring references to nonexistent types. Nonexistent, because Ogma/Tool is unable to generate types that have an inheritance hierarchy to them.
Folder
Story
OgmaUser
Rating
Tag
This needs fixing.
Right now, it seems /api/folders/add-story is sus. Let's investigate.
/api/folders/add-story
Yes. It was this one, single motherfucker who was leaking the entire database structure...
Generating TS clients results in this curious code:
with
Folder
,Story
,OgmaUser
,Rating
, andTag
requiring references to nonexistent types. Nonexistent, because Ogma/Tool is unable to generate types that have an inheritance hierarchy to them.This needs fixing.