Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions grassroots-backend/src/phone-canvass/PhoneCanvass.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,12 @@ export class PhoneCanvassModel {
next: () => {
runPromise(
(async (): Promise<void> => {
const canvass = await this.#entityManager.findOneOrFail(
PhoneCanvassEntity,
{ id: this.phoneCanvassId },
);
const em = this.#entityManager.fork();
const canvass = await em.findOneOrFail(PhoneCanvassEntity, {
id: this.phoneCanvassId,
});
canvass.lastSyncUpdate = new Date();
await this.#entityManager.flush();
await em.flush();
})(),
false,
);
Expand Down
Loading