You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having some issues mocking fakeModel while using 'findByPk' query.
I have changed query property value to "findByPk" in src/model.js and it works.
Guess double assignment on lines 407 and 408 doesn't solve the alias issue of findById and findByPk equivalance.
fakeModel.prototype.findById =
fakeModel.prototype.findByPk = async function (id) {
var self = this;
return await this.$query({
query: "findByPk",
Cheers
The text was updated successfully, but these errors were encountered:
sequelize-mock/src/model.js
Line 412 in 0166363
Hi,
I'm having some issues mocking fakeModel while using 'findByPk' query.
I have changed query property value to "findByPk" in src/model.js and it works.
Guess double assignment on lines 407 and 408 doesn't solve the alias issue of findById and findByPk equivalance.
Cheers
The text was updated successfully, but these errors were encountered: