diff options
author | Vitaly Takmazov | 2018-08-09 18:21:51 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-08-09 18:21:51 +0300 |
commit | babb3a50a1c7e6101980a9577364b169b5c6654c (patch) | |
tree | 27f82bb04c79587bd9d844e916102eb6cc49d1ca /juick-server/src/main | |
parent | 244c5aac19f19b64d4e066b1e66da72f704cf36a (diff) |
Fix attachments errors
Diffstat (limited to 'juick-server/src/main')
-rw-r--r-- | juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java b/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java index f79e4142..054503c1 100644 --- a/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java +++ b/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java @@ -118,7 +118,7 @@ public class MessagesServiceImpl extends BaseJdbcService implements MessagesServ insertMap.put("user_id", uid); Instant now = Instant.now(); insertMap.put("ts", Timestamp.from(now)); - if (attachment != null) { + if (StringUtils.isNotEmpty(attachment)) { insertMap.put("attach", attachment); } int mid = simpleJdbcInsert.executeAndReturnKey(insertMap).intValue(); |