@shaxpir/duiduidui-models 1.4.4 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/models/Term.js +2 -2
- package/package.json +1 -1
package/dist/models/Term.js
CHANGED
|
@@ -39,7 +39,7 @@ class Term extends Content_1.Content {
|
|
|
39
39
|
else {
|
|
40
40
|
phrase = textOrPhrase;
|
|
41
41
|
}
|
|
42
|
-
const termId =
|
|
42
|
+
const termId = Term.makeTermId(userId, phrase.text, senseRank);
|
|
43
43
|
return repo_1.ShareSyncFactory.get().createContent({
|
|
44
44
|
meta: {
|
|
45
45
|
ref: termId,
|
|
@@ -73,7 +73,7 @@ class Term extends Content_1.Content {
|
|
|
73
73
|
}
|
|
74
74
|
static forBuiltinPhrase(userId, phrase) {
|
|
75
75
|
const now = shaxpir_common_1.MultiClock.now();
|
|
76
|
-
const termId =
|
|
76
|
+
const termId = Term.makeTermId(userId, phrase.text, phrase.sense_rank);
|
|
77
77
|
return repo_1.ShareSyncFactory.get().createContent({
|
|
78
78
|
meta: {
|
|
79
79
|
ref: termId,
|