Skip to content

Commit

Permalink
Update variant status name
Browse files Browse the repository at this point in the history
  • Loading branch information
maallen committed Oct 23, 2024
1 parent 0afaa8d commit 0ff342e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public enum Status {

MT_TRANSLATED,

MT_REVIEW,
MT_REVIEW_NEEDED,
/** A string that doesn't need any work to be performed on it. */
APPROVED;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.box.l10n.mojito.service.ai.translation;

import static com.box.l10n.mojito.entity.TMTextUnitVariant.Status.MT_REVIEW_NEEDED;

import com.box.l10n.mojito.JSR310Migration;
import com.box.l10n.mojito.entity.PromptType;
import com.box.l10n.mojito.entity.TmTextUnitPendingMT;
Expand Down Expand Up @@ -94,7 +96,7 @@ private void executeVariantStatusUpdatesToMTReview(List<Long> updateBatch) {
new BatchPreparedStatementSetter() {
@Override
public void setValues(PreparedStatement ps, int i) throws SQLException {
ps.setString(1, "MT_REVIEW");
ps.setString(1, MT_REVIEW_NEEDED.name());
ps.setLong(2, updateBatch.get(i));
}

Expand Down

0 comments on commit 0ff342e

Please sign in to comment.