Skip to content

Commit 491651f

Browse files
authored
Merge pull request #221 from AthennaIO/develop
fix: adjust createOrUpdate type
2 parents 652902a + 8610843 commit 491651f

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)