Skip to content

Commit 6d836b2

Browse files
committed
fixed note controller test
1 parent 8130121 commit 6d836b2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/edu/tamu/app/controller/NoteController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public ApiResponse create(@ApiValidatedModel Note note, @ApiCredentials Credenti
7272
@Auth(role = "ROLE_SERVICE_MANAGER")
7373
public ApiResponse update(@ApiValidatedModel Note note) {
7474
note = noteRepo.save(note);
75-
ApiResponse response = new ApiResponse(SUCCESS, noteRepo.getOne(note.getId()));
75+
ApiResponse response = new ApiResponse(SUCCESS, note);
7676
simpMessagingTemplate.convertAndSend("/channel/note/" + note.getId(), response);
7777
return response;
7878
}

src/main/resources/config/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ auth.security.jwt-expiration: 120000
3535
app.security.secret: verysecretsecret
3636

3737
# Required in framework - CoreCorsFilter
38-
app.security.allow-access: http://localhost, http://laddusaw.tamu.edu
38+
app.security.allow-access: http://localhost, http://laddusaw.tamu.edu, http://janus.evans.tamu.edu
3939

4040
# required in framework - CoreControllerAspect
4141
app.aspect.retry: 3

0 commit comments

Comments
 (0)