Skip to content

Commit c707cd1

Browse files
fix: update entity state to mark as persisted after saving in PrismaRepository
1 parent 3823b90 commit c707cd1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/rich-domain-prisma/src/prisma.repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export abstract class PrismaRepository<
206206
*/
207207
async save(entity: TDomain): Promise<void> {
208208
await this.toPersistenceMapper.build(entity);
209-
entity.markAsClean();
209+
entity.markAsPersisted();
210210
}
211211

212212
/**

0 commit comments

Comments
 (0)