diff --git a/src/builder.js b/src/builder.js index dcfe789..e8c79fa 100644 --- a/src/builder.js +++ b/src/builder.js @@ -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 }); @@ -1075,4 +1075,4 @@ class Builder { } } -module.exports = Builder; \ No newline at end of file +module.exports = Builder;