Skip to content

Commit 8610843

Browse files
committed
fix: adjust createOrUpdate type
1 parent ffe9c0d commit 8610843

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/models/builders/ModelQueryBuilder.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,10 @@ export class ModelQueryBuilder<
390390
if (hasValue) {
391391
const pk = this.primaryKeyProperty
392392

393-
return this.where(pk, hasValue[pk as any]).update(data, cleanPersist) as Promise<M>
393+
return this.where(pk, hasValue[pk as any]).update(
394+
data,
395+
cleanPersist
396+
) as Promise<M>
394397
}
395398

396399
return this.create(data, cleanPersist)

0 commit comments

Comments
 (0)