Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ class Builder {
}

async updateOrCreate(attributes, values = {}) {
return await tap(this.firstOrNew(attributes), async (instance) => {
return await tap(await this.firstOrNew(attributes), async (instance) => {
await instance.fill(values).save({
client: this.query
});
Expand Down Expand Up @@ -1075,4 +1075,4 @@ class Builder {
}
}

module.exports = Builder;
module.exports = Builder;