fix: Add nextSampleNumber to all AppUser constructor calls in CatalogService
This commit is contained in:
@@ -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
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user