mirror of
https://github.com/strapi/strapi.git
synced 2025-10-30 01:17:28 +00:00
fix typo
This commit is contained in:
parent
52b780b036
commit
bc53362e16
@ -66,14 +66,14 @@ const validateBidirectionalRelations = async (db) => {
|
||||
if (joinTableEmpty) {
|
||||
process.emitWarning(
|
||||
`Error on attribute "${invRelation.inversedBy}" in model "${contentType.singularName}" (${contentType.uid}).` +
|
||||
` Please modify your ${contentType.singularName} schema by renaming the key "inversedBy" by "mappedBy".` +
|
||||
` Please modify your ${contentType.singularName} schema by renaming the key "inversedBy" to "mappedBy".` +
|
||||
` Ex: { inversedBy: "${relation.inversedBy}" } -> { mappedBy: "${relation.inversedBy}" } }`
|
||||
);
|
||||
} else if (inverseJoinTableEmpty) {
|
||||
// Its safe to delete the inverse join table
|
||||
process.emitWarning(
|
||||
`Error on attribute "${relation.inversedBy}" in model "${invContentType.singularName}" (${invContentType.uid}).` +
|
||||
` Please modify your ${invContentType.singularName} schema by renaming the key "inversedBy" by "mappedBy".` +
|
||||
` Please modify your ${invContentType.singularName} schema by renaming the key "inversedBy" to "mappedBy".` +
|
||||
` Ex: { inversedBy: "${invRelation.inversedBy}" } -> { mappedBy: "${invRelation.inversedBy}" } }`
|
||||
);
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user