Skip to content

Commit

Permalink
refactor: remove leftover parts from the old project
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsenk committed Aug 18, 2024
1 parent ec87c78 commit f6087ca
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public String generateToken(String subject, Algorithm key, LocalDateTime expires
.withPayload(claims)
.withSubject(subject)
.withIssuedAt(now)
.withIssuer("Routetitan-Auth")
.withIssuer("Teamwize-Auth")
.withExpiresAt(expiresAtInstant)
.sign(key);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ private Components buildComponentsWithAdditionalCustomExceptions() throws ClassN

scanner.addIncludeFilter(new AnnotationTypeFilter(ResponseStatus.class));

for (var bd : scanner.findCandidateComponents("com.routetitan.account.api")) {
for (var bd : scanner.findCandidateComponents("app.teamwize.api")) {
var className = Class.forName(bd.getBeanClassName());
var annotation = className.getDeclaredAnnotation(ResponseStatus.class);
var errorCode = className.getSimpleName().replaceAll("Exception", "Error");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

@Slf4j
@Component
public class RoutetitanOpenApiModelConverter implements ModelConverter {
public class TeamwizeOpenApiModelConverter implements ModelConverter {

@Override
public Schema resolve(AnnotatedType type, ModelConverterContext context, Iterator<ModelConverter> chain) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@Constraint(validatedBy = NotTempEmailValidator.class)
public @interface NotTempEmail {

String message() default "com.routetitan.account.nottempmail";
String message();

Class<?>[] groups() default {};

Expand Down

0 comments on commit f6087ca

Please sign in to comment.