Skip to content

Commit

Permalink
Resolve update() errors (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
gothub committed Jun 26, 2020
1 parent f46d440 commit d445d75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/dataone/bookkeeper/jdbi/QuotaStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ public interface QuotaStore {
"unit = :unit, " +
"subscriptionId = :subscriptionId, " +
"subject = :subject " +
"WHERE id = :id " +
"RETURNING id")
"WHERE id = :id ")
@GetGeneratedKeys
Quota update(@BindBean Quota quota);

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/dataone/bookkeeper/jdbi/UsageStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public interface UsageStore {
"quantity = :quantity, " +
"status = :status, " +
"nodeId = :nodeId " +
"RETURNING id")
"WHERE id = :id")
@GetGeneratedKeys
Usage update(@BindBean Usage usage);

Expand Down

0 comments on commit d445d75

Please sign in to comment.