Skip to content

Commit 05c01bf

Browse files
committed
1 parent 928c3d1 commit 05c01bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/ru/exlmoto/digest/repository/BotDigestUserRepository.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* The MIT License (MIT)
33
*
4-
* Copyright (c) 2015-2020 EXL <[email protected]>
4+
* Copyright (c) 2015-2022 EXL <[email protected]>
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
@@ -25,6 +25,7 @@
2525
package ru.exlmoto.digest.repository;
2626

2727
import org.springframework.data.jpa.repository.JpaRepository;
28+
import org.springframework.data.repository.query.Param;
2829

2930
import ru.exlmoto.digest.entity.BotDigestUserEntity;
3031

@@ -35,7 +36,7 @@ default List<BotDigestUserEntity> findUsersWithUsername() {
3536
return findBotDigestUserEntitiesByUsernameStartsWith("@");
3637
}
3738

38-
List<BotDigestUserEntity> findBotDigestUserEntitiesByUsernameStartsWith(String startWith);
39+
List<BotDigestUserEntity> findBotDigestUserEntitiesByUsernameStartsWith(@Param("prefix") String prefix);
3940

4041
BotDigestUserEntity getBotDigestUserEntityById(long id);
4142

0 commit comments

Comments
 (0)