Skip to content

Commit

Permalink
fix: use negative IDs for community-sourced words
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed Dec 3, 2024
1 parent 4999d7c commit b9a2143
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/engine/src/sync/words/Git2Gsheets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ export class Git2Gsheets extends GSheetsOp {

const notes = [[...this._annotate(null, dto)] as string[]];

// We still use negative IDs for community-sourced words
dto.id = -Math.abs(+dto.id);
dtoAddLang.id = -Math.abs(+dtoAddLang.id);

this.wordsSheet.batch.appendRows({
values: [[...dto]],
notes,
Expand Down

0 comments on commit b9a2143

Please sign in to comment.