|
|
|
@ -22,7 +22,6 @@ import org.springframework.data.repository.query.Param; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.thingsboard.server.dao.model.sql.ApiKeyEntity; |
|
|
|
|
|
|
|
import java.util.Set; |
|
|
|
import java.util.UUID; |
|
|
|
|
|
|
|
public interface ApiKeyRepository extends JpaRepository<ApiKeyEntity, UUID> { |
|
|
|
@ -38,7 +37,7 @@ public interface ApiKeyRepository extends JpaRepository<ApiKeyEntity, UUID> { |
|
|
|
@Modifying |
|
|
|
@Query("DELETE FROM ApiKeyEntity ak WHERE ak.tenantId = :tenantId AND ak.userId = :userId") |
|
|
|
void deleteByUserId(@Param("tenantId") UUID tenantId, |
|
|
|
@Param("userId") UUID userId); |
|
|
|
@Param("userId") UUID userId); |
|
|
|
|
|
|
|
@Transactional |
|
|
|
@Modifying |
|
|
|
|