mirror of
https://github.com/strapi/strapi.git
synced 2025-11-18 19:22:05 +00:00
remove unnecessary comments
This commit is contained in:
parent
e273f7f76d
commit
189a67b237
@ -74,7 +74,6 @@ class Database {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Do the same for repeated mappedBy relations
|
|
||||||
const getLinks = ({ db }) => {
|
const getLinks = ({ db }) => {
|
||||||
const relationsToUpdate = {};
|
const relationsToUpdate = {};
|
||||||
|
|
||||||
@ -102,11 +101,6 @@ const getLinks = ({ db }) => {
|
|||||||
return Object.values(relationsToUpdate);
|
return Object.values(relationsToUpdate);
|
||||||
};
|
};
|
||||||
|
|
||||||
// const isLinkTableEmpty = async (db, linkTableName) => {
|
|
||||||
// const result = await db.getConnection().count('* as count').from(linkTableName);
|
|
||||||
// return result.count === 0;
|
|
||||||
// };
|
|
||||||
|
|
||||||
// TODO: move into strapi
|
// TODO: move into strapi
|
||||||
Database.transformContentTypes = transformContentTypes;
|
Database.transformContentTypes = transformContentTypes;
|
||||||
Database.init = async (config) => {
|
Database.init = async (config) => {
|
||||||
@ -129,7 +123,6 @@ Database.init = async (config) => {
|
|||||||
const invContentType = db.metadata.get(relation.target);
|
const invContentType = db.metadata.get(relation.target);
|
||||||
|
|
||||||
// If both sides use inversedBy
|
// If both sides use inversedBy
|
||||||
// TODO: Same for mappedBy
|
|
||||||
if (relation.inversedBy && invRelation.inversedBy) {
|
if (relation.inversedBy && invRelation.inversedBy) {
|
||||||
// If the generated join table name is the same as the one assigned in relation.joinTable,
|
// If the generated join table name is the same as the one assigned in relation.joinTable,
|
||||||
// relation is on the inversed side of the bidirectional relation.
|
// relation is on the inversed side of the bidirectional relation.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user