Skip to content

Commit 2b0bf0a

Browse files
committed
JdbcCollectionDao.markAsModified(): split out userId and updatedBy.
No functional changes.
1 parent 7a58bc9 commit 2b0bf0a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/java/ru/mystamps/web/dao/impl/JdbcCollectionDao.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ public Integer add(AddCollectionDbDto collection) {
124124
@Override
125125
public void markAsModified(Integer userId, Date updatedAt) {
126126
Map<String, Object> params = new HashMap<>();
127+
params.put("user_id", userId);
127128
params.put("updated_at", updatedAt);
128129
params.put("updated_by", userId);
129130

src/main/resources/sql/collection_dao_queries.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ collection.mark_as_modified = \
3838
UPDATE collections c \
3939
SET c.updated_at = :updated_at \
4040
, c.updated_by = :updated_by \
41-
WHERE c.user_id = :updated_by
41+
WHERE c.user_id = :user_id
4242

4343
collection.is_series_in_collection = \
4444
SELECT COUNT(*) \

0 commit comments

Comments
 (0)