mirror of
https://github.com/strapi/strapi.git
synced 2025-11-05 04:13:36 +00:00
remove TODO comments
This commit is contained in:
parent
6e67d82f5f
commit
95f3abfa6b
@ -412,7 +412,6 @@ const createEntityManager = (db) => {
|
|||||||
* @param {ID} id - entity ID
|
* @param {ID} id - entity ID
|
||||||
* @param {object} data - data received for creation
|
* @param {object} data - data received for creation
|
||||||
*/
|
*/
|
||||||
// TODO: wrap Transaction
|
|
||||||
async attachRelations(uid, id, data, { transaction: trx }) {
|
async attachRelations(uid, id, data, { transaction: trx }) {
|
||||||
const { attributes } = db.metadata.get(uid);
|
const { attributes } = db.metadata.get(uid);
|
||||||
|
|
||||||
@ -621,7 +620,6 @@ const createEntityManager = (db) => {
|
|||||||
* @param {object} data - data received for creation
|
* @param {object} data - data received for creation
|
||||||
*/
|
*/
|
||||||
// TODO: check relation exists (handled by FKs except for polymorphics)
|
// TODO: check relation exists (handled by FKs except for polymorphics)
|
||||||
// TODO: wrap Transaction
|
|
||||||
async updateRelations(uid, id, data, { transaction: trx }) {
|
async updateRelations(uid, id, data, { transaction: trx }) {
|
||||||
const { attributes } = db.metadata.get(uid);
|
const { attributes } = db.metadata.get(uid);
|
||||||
|
|
||||||
@ -1007,7 +1005,6 @@ const createEntityManager = (db) => {
|
|||||||
* @param {Metadata} metadata - model metadta
|
* @param {Metadata} metadata - model metadta
|
||||||
* @param {ID} id - entity ID
|
* @param {ID} id - entity ID
|
||||||
*/
|
*/
|
||||||
// TODO: wrap Transaction
|
|
||||||
async deleteRelations(uid, id, { transaction: trx }) {
|
async deleteRelations(uid, id, { transaction: trx }) {
|
||||||
const { attributes } = db.metadata.get(uid);
|
const { attributes } = db.metadata.get(uid);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user