Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ private void assertNotes(
private Note note() {
return Note.builder()
.note(UID.generate())
.storedBy("This is the creator")
.storedBy(userDetails.getUsername())
.value("This is a note")
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private long saveNote(@Nonnull Note note, @Nonnull UserDetails user) {

MapSqlParameterSource params = new MapSqlParameterSource();
params.addValue("text", note.getValue());
params.addValue("creator", note.getStoredBy());
params.addValue("creator", user.getUsername());
params.addValue("lastUpdatedBy", user.getUid());
params.addValue("uid", note.getNote().getValue());
params.addValue("created", new Date());
Expand Down
Loading