generated from moevm/nsql-clean-tempate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
2 changed files
with
2 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,8 +49,6 @@ public void run(ApplicationArguments args) throws Exception { | |
userRepository.deleteAll(); | ||
logRepository.deleteAll(); | ||
|
||
logCreation(); | ||
|
||
userCreation(); | ||
|
||
formsCreation(); | ||
|
@@ -59,16 +57,6 @@ public void run(ApplicationArguments args) throws Exception { | |
|
||
} | ||
|
||
private void logCreation() { | ||
Log log = new Log(); | ||
log.setFormId("sampleid"); | ||
log.setEditAction("sampleEdit"); | ||
log.setEditTime(Instant.now()); | ||
log.setEventType("sampleType"); | ||
log.setEditEmail("[email protected]"); | ||
logRepository.save(log); | ||
} | ||
|
||
private void userCreation(){ | ||
if (userRepository.findByEmail(SASHA_MAIL).isEmpty()){ | ||
User userSasha = new User(); | ||
|