Skip to content

Commit

Permalink
ci: add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jun 20, 2020
1 parent 80d63d7 commit 0952dcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Factory/Relations/ManyToMany.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export class ManyToMany implements FactoryRelationContract {
pivotAttributes[pivotRelatedKey] = pivotRelatedValue
})

console.log(pivotAttributes)
await this.relation.client(parent, this.ctx.$trx!).attach(pivotAttributes)
parent.$setRelated(this.relation.relationName, instances)
}
Expand Down
2 changes: 1 addition & 1 deletion test/factory/many-to-many.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ test.group('Factory | ManyToMany | make', (group) => {
})
})

test.group('Factory | HasMany | create', (group) => {
test.group('Factory | ManyToMany | create', (group) => {
group.before(async () => {
db = getDb()
BaseModel = getBaseModel(ormAdapter(db))
Expand Down

0 comments on commit 0952dcc

Please sign in to comment.