Audit sécurité/qualité : corrections critiques, tests, CI et lint #4
@@ -69,7 +69,7 @@ describe('commentaire.create', () => {
|
|||||||
expect(commentaireDocuments.create).toHaveBeenCalled()
|
expect(commentaireDocuments.create).toHaveBeenCalled()
|
||||||
expect(paroleDocuments.update).toHaveBeenCalledWith({
|
expect(paroleDocuments.update).toHaveBeenCalledWith({
|
||||||
documentId: dbParole.documentId,
|
documentId: dbParole.documentId,
|
||||||
data: {commentaires: [99]}
|
data: {commentaires: {connect: [99]}}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ module.exports = createCoreController('api::commentaire.commentaire', ({strapi})
|
|||||||
documentId: parole.documentId,
|
documentId: parole.documentId,
|
||||||
|
|
||||||
data: {
|
data: {
|
||||||
commentaires: [newCommentaire.id]
|
commentaires: {connect: [newCommentaire.id]}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user