From e6d1cb98ec3e5ff728c0b8e1adb540cbacc8a5e6 Mon Sep 17 00:00:00 2001 From: Anna Hughes Date: Tue, 17 Dec 2024 20:03:37 +0000 Subject: [PATCH] fix: return saved resource user (#732) --- src/resource-user/resource-user.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resource-user/resource-user.service.ts b/src/resource-user/resource-user.service.ts index bc5c6de4..d89532d3 100644 --- a/src/resource-user/resource-user.service.ts +++ b/src/resource-user/resource-user.service.ts @@ -81,7 +81,7 @@ export class ResourceUserService { }); if (resourceUser) { - await this.resourceUserRepository.save({ + resourceUser = await this.resourceUserRepository.save({ ...resourceUser, completedAt: completed ? new Date() : null, });