Skip to content

Commit 87a7dab

Browse files
committed
refactor(pinia-orm): revert small line
1 parent 4f604fd commit 87a7dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/pinia-orm/src/query/Query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ export class Query<M extends Model = Model> {
10881088

10891089
const modelByType = this.model.$types()[record[this.model.$typeKey()]]
10901090
const getNewInsance = (newOptions?: ModelOptions) => (modelByType ? modelByType.newRawInstance() as M : this.model)
1091-
.$newInstance(record, { ...(options || {}), ...newOptions, relations: false })
1091+
.$newInstance(record, { relations: false, ...(options || {}), ...newOptions })
10921092
const hydratedModel = getNewInsance()
10931093

10941094
if (isEmpty(this.eagerLoad) && options?.operation !== 'set' && this.hydrationKey !== undefined) {

0 commit comments

Comments
 (0)