Skip to content

Commit

Permalink
describeLinks is infrastructure, not an example
Browse files Browse the repository at this point in the history
  • Loading branch information
rizen committed Jan 14, 2025
1 parent 8eaeabd commit 0cf157a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ving/generator/vingrecord.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ const describeExample = ({ bare }) => {
`;
}

const describeLinksExample = ({ bare, name }) => {
if (bare)
return '';
const describeLinks = ({ name }) => {
return `
/**
* Extends \`describeLinks()\` in \`VingRecord\`
Expand Down Expand Up @@ -115,7 +113,7 @@ ${bare ? '' : "import { isUndefined } from '#ving/utils/identify.mjs';"}
export class ${name}Record extends VingRecord {
// add custom Record code here
${describeExample({ bare })}
${describeLinksExample({ bare, name })}
${describeLinks({ bare, name })}
${addRelationshipDelete({ schema })}
}
Expand Down

0 comments on commit 0cf157a

Please sign in to comment.