fix: Add nextSampleNumber to all AppUser constructor calls in CatalogService

This commit is contained in:
2026-03-17 09:18:53 +01:00
parent 217e0b8dc0
commit 3367129d37

View File

@@ -439,6 +439,7 @@ public class CatalogService {
encodeIfPresent(mutation.password()), encodeIfPresent(mutation.password()),
mutation.active(), mutation.active(),
adminManaged ? normalizeManagedRole(mutation.role()) : UserRole.CUSTOMER, adminManaged ? normalizeManagedRole(mutation.role()) : UserRole.CUSTOMER,
100000L,
now, now,
now now
)); ));
@@ -471,6 +472,7 @@ public class CatalogService {
actor.role() == UserRole.ADMIN actor.role() == UserRole.ADMIN
? (mutation.role() == null ? normalizeStoredRole(existing.role()) : normalizeManagedRole(mutation.role())) ? (mutation.role() == null ? normalizeStoredRole(existing.role()) : normalizeManagedRole(mutation.role()))
: normalizeStoredRole(existing.role()), : normalizeStoredRole(existing.role()),
existing.nextSampleNumber(),
existing.createdAt(), existing.createdAt(),
now now
)); ));
@@ -517,6 +519,7 @@ public class CatalogService {
passwordEncoder.encode(newPassword), passwordEncoder.encode(newPassword),
existing.active(), existing.active(),
existing.role(), existing.role(),
existing.nextSampleNumber(),
existing.createdAt(), existing.createdAt(),
LocalDateTime.now() LocalDateTime.now()
)); ));
@@ -580,6 +583,7 @@ public class CatalogService {
passwordEncoder.encode(mutation.password()), passwordEncoder.encode(mutation.password()),
true, true,
UserRole.CUSTOMER, UserRole.CUSTOMER,
100000L,
now, now,
now now
)); ));
@@ -599,6 +603,7 @@ public class CatalogService {
created.passwordHash(), created.passwordHash(),
created.active(), created.active(),
created.role(), created.role(),
created.nextSampleNumber(),
created.createdAt(), created.createdAt(),
created.updatedAt() created.updatedAt()
)); ));
@@ -830,6 +835,7 @@ public class CatalogService {
user.passwordHash(), user.passwordHash(),
user.active(), user.active(),
normalizeStoredRole(user.role()), normalizeStoredRole(user.role()),
user.nextSampleNumber(),
user.createdAt(), user.createdAt(),
now now
))); )));
@@ -864,6 +870,7 @@ public class CatalogService {
passwordEncoder.encode(rawPassword), passwordEncoder.encode(rawPassword),
true, true,
role, role,
100000L,
now, now,
now now
)); ));