Skip to content

Commit

Permalink
Merge pull request #83 from Dapp-Learning-DAO/fix/share_update
Browse files Browse the repository at this point in the history
.
  • Loading branch information
arc0035 committed Dec 12, 2023
2 parents 21fca6e + 113b40e commit 9caf0a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ public void updateSharing(UpdateSharingReq req, String address) {
throw new BizException(CodeEnums.SHARING_NOT_FOUND);
}
TbShare sharing = existed.get();
SessionUserInfo userInfo = HttpSessionUtils.getMember(request.getSession());
Member member = this.memberRepository.findByAddress(userInfo.getAddress()).get();
// SessionUserInfo userInfo = HttpSessionUtils.getMember(request.getSession());
// Member member = this.memberRepository.findByAddress(userInfo.getAddress()).get();

// if(!Objects.equals(sharing.getMemberId(), member.getId())){
// throw new BizException(CodeEnums.SHARING_NOT_FOUND);
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ spring:
url: jdbc:mysql://127.0.0.1:3306/dl?allowPublicKeyRetrieval=true&useSSL=false
#type: com.alibaba.druid.pool.DruidDataSource
username: root
# password: 12345678
password: {{SPRING_DATASOURCE_PASSWORD}}
password: 12345678
# password: {{SPRING_DATASOURCE_PASSWORD}}
maximum-pool-size: 20

jpa:
Expand Down

0 comments on commit 9caf0a2

Please sign in to comment.