WorkRestのPUTの一部を修正しました。
1 parent 54d0537 commit dcd42d05b35cec9012a272b5000e3cf13b14aad6
s-michishita authored on 1 Jun 2021
Showing 1 changed file
View
2
■■■
src/main/java/org/ntlab/acanthus_server/resources/accounts/WorkRest.java
if(invitedWork != null){
invitedWork.setWork(); //招待されている作品を参加している作品へ状態変化
 
//作品のeditorsにユーザーを追加
animation.restWorkToEditors(aid, invitedUid);
animation.restWorkToEditors(account);
}else{
//作品に招待されていない場合のレスポンス
var response = Response.status(400).entity("作品に招待されていません");
throw new WebApplicationException(response.build());