chore: Remove InviteUser and associated classes (#28162)
Remove unused InviteUser classes and index.
This commit is contained in:
parent
878d0178ca
commit
aef16c653f
|
|
@ -1,18 +0,0 @@
|
||||||
package com.appsmith.server.domains;
|
|
||||||
|
|
||||||
import com.appsmith.server.acl.AppsmithRole;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
import org.springframework.data.mongodb.core.mapping.Document;
|
|
||||||
|
|
||||||
@Setter
|
|
||||||
@Getter
|
|
||||||
@Document
|
|
||||||
public class InviteUser extends User {
|
|
||||||
|
|
||||||
String inviterUserId;
|
|
||||||
|
|
||||||
String token;
|
|
||||||
|
|
||||||
AppsmithRole role;
|
|
||||||
}
|
|
||||||
|
|
@ -28,7 +28,6 @@ import com.appsmith.server.domains.Config;
|
||||||
import com.appsmith.server.domains.GitApplicationMetadata;
|
import com.appsmith.server.domains.GitApplicationMetadata;
|
||||||
import com.appsmith.server.domains.GitAuth;
|
import com.appsmith.server.domains.GitAuth;
|
||||||
import com.appsmith.server.domains.Group;
|
import com.appsmith.server.domains.Group;
|
||||||
import com.appsmith.server.domains.InviteUser;
|
|
||||||
import com.appsmith.server.domains.Layout;
|
import com.appsmith.server.domains.Layout;
|
||||||
import com.appsmith.server.domains.NewAction;
|
import com.appsmith.server.domains.NewAction;
|
||||||
import com.appsmith.server.domains.NewPage;
|
import com.appsmith.server.domains.NewPage;
|
||||||
|
|
@ -344,13 +343,6 @@ public class DatabaseChangelog1 {
|
||||||
createdAtIndex,
|
createdAtIndex,
|
||||||
makeIndex("organizationId", "name").unique().named("organization_datasource_compound_index"));
|
makeIndex("organizationId", "name").unique().named("organization_datasource_compound_index"));
|
||||||
|
|
||||||
ensureIndexes(
|
|
||||||
mongoTemplate,
|
|
||||||
InviteUser.class,
|
|
||||||
createdAtIndex,
|
|
||||||
makeIndex("token").unique().expire(3600, TimeUnit.SECONDS),
|
|
||||||
makeIndex("email").unique());
|
|
||||||
|
|
||||||
ensureIndexes(
|
ensureIndexes(
|
||||||
mongoTemplate,
|
mongoTemplate,
|
||||||
Page.class,
|
Page.class,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
package com.appsmith.server.repositories;
|
|
||||||
|
|
||||||
import com.appsmith.server.repositories.ce.InviteUserRepositoryCE;
|
|
||||||
import org.springframework.stereotype.Repository;
|
|
||||||
|
|
||||||
@Repository
|
|
||||||
public interface InviteUserRepository extends InviteUserRepositoryCE {}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
package com.appsmith.server.repositories.ce;
|
|
||||||
|
|
||||||
import com.appsmith.server.domains.InviteUser;
|
|
||||||
import com.appsmith.server.repositories.BaseRepository;
|
|
||||||
import reactor.core.publisher.Mono;
|
|
||||||
|
|
||||||
public interface InviteUserRepositoryCE extends BaseRepository<InviteUser, String> {
|
|
||||||
|
|
||||||
Mono<InviteUser> findByEmail(String email);
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user