mirror of
https://github.com/vran-dev/databasir.git
synced 2025-08-09 02:20:51 +08:00
fix: can't init admin user when start
This commit is contained in:
@@ -50,7 +50,7 @@ public class SystemService {
|
||||
|
||||
String email = "N/A";
|
||||
String username = "databasir";
|
||||
Optional<UserPojo> userOpt = userDao.selectByEmail(email);
|
||||
Optional<UserPojo> userOpt = userDao.selectByEmailOrUsername(username);
|
||||
if (!userOpt.isPresent()) {
|
||||
UserPojo admin = new UserPojo();
|
||||
admin.setEmail(email);
|
||||
|
Reference in New Issue
Block a user