Skip to content

Commit

Permalink
fix: update name
Browse files Browse the repository at this point in the history
  • Loading branch information
willruggiano committed Jul 10, 2024
1 parent 8fd6329 commit df4ca4b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/datasources/name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export async function updateName(input: UpdateNameInput, sql: SQL) {
);
`;

// Attempt to update the master as well, but only do so if the given name
// matches the master, i.e. same language_id.
// Attempt to update the master as well, but only do so if the languages
// match.
await sql`
UPDATE public.languagemaster
SET
Expand All @@ -71,7 +71,6 @@ export async function updateName(input: UpdateNameInput, sql: SQL) {
languagemasterstatus = 'NEEDS_COMPLETE_RETRANSLATION'
WHERE
languagemasteruuid = ${input.id}
AND languagemastersource = ${input.value}
AND languagemastersourcelanguagetypeid = (
SELECT systagid
FROM public.systag
Expand Down

0 comments on commit df4ca4b

Please sign in to comment.