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