We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb2f6b7 commit b80a3c9Copy full SHA for b80a3c9
storage/framework/core/orm/src/generate.ts
@@ -322,7 +322,7 @@ export async function generateModelString(
322
const displayableAttributes = typeof model.traits?.useSearch === 'object' && model.traits?.useSearch.displayable
323
324
const likeableTable = getUpvoteTableName(model, tableName)
325
- const likeableForeignKey = getUpvoteTableName(model, modelName)
+ const likeableForeignKey = getUpvoteForeignKey(model, modelName)
326
327
if (typeof useSearchable === 'object' && useSearchable) {
328
const searchAttrs = Array.isArray(displayableAttributes) ? displayableAttributes : []
0 commit comments