mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-03-07 15:31:00 +08:00
Fix org creation
This commit is contained in:
parent
8b98237420
commit
daea1a9374
@ -69,6 +69,7 @@ public class OrganizationController extends HangarComponent {
|
||||
|
||||
@Anyone
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
@RateLimit(overdraft = 20, refillTokens = 10, refillSeconds = 1)
|
||||
@GetMapping("/validate")
|
||||
public void validateName(@RequestParam final String name) {
|
||||
if (!this.validationService.isValidOrgName(name)) {
|
||||
|
@ -8,7 +8,7 @@ import java.time.OffsetDateTime;
|
||||
import java.util.UUID;
|
||||
import org.jdbi.v3.core.mapper.PropagateNull;
|
||||
import org.jdbi.v3.core.mapper.reflect.JdbiConstructor;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public class OrganizationTable extends Table implements Visitable, ProjectOwner, OrganizationLoggable, Owned {
|
||||
|
||||
@ -18,7 +18,7 @@ public class OrganizationTable extends Table implements Visitable, ProjectOwner,
|
||||
private final UUID userUuid;
|
||||
|
||||
@JdbiConstructor
|
||||
public OrganizationTable(final OffsetDateTime createdAt, @PropagateNull final long id, final String name, final long ownerId, final long userId, final @Nullable UUID userUuid) {
|
||||
public OrganizationTable(final OffsetDateTime createdAt, @PropagateNull final long id, final String name, final long ownerId, final long userId, @Nullable final UUID userUuid) {
|
||||
super(createdAt, id);
|
||||
this.name = name;
|
||||
this.ownerId = ownerId;
|
||||
|
Loading…
Reference in New Issue
Block a user