@shaxpir/duiduidui-models 1.25.9 → 1.25.10
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.
|
@@ -28,21 +28,27 @@ class SharedContent extends Content_1.Content {
|
|
|
28
28
|
async modelUpdated() {
|
|
29
29
|
this.checkDisposed("SharedContent.modelUpdated");
|
|
30
30
|
this.acquire();
|
|
31
|
+
const contentId = this.id;
|
|
31
32
|
const userIds = this.getAllSharedUserIds();
|
|
32
33
|
for (const userId of userIds) {
|
|
33
34
|
try {
|
|
34
35
|
const manifestId = Manifest_1.Manifest.makeManifestId(userId);
|
|
36
|
+
console.log(`[SharedContent.modelUpdated] acquiring manifest ${manifestId} for content=${contentId}`);
|
|
35
37
|
const manifest = await this.shareSync.acquire(ContentKind_1.ContentKind.MANIFEST, manifestId);
|
|
38
|
+
console.log(`[SharedContent.modelUpdated] acquired manifest ${manifestId} exists=${manifest?.exists()}`);
|
|
36
39
|
if (manifest && manifest.exists()) {
|
|
37
40
|
manifest.update(this);
|
|
38
41
|
manifest.release();
|
|
42
|
+
console.log(`[SharedContent.modelUpdated] updated and released manifest ${manifestId}`);
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
catch (err) {
|
|
46
|
+
console.error(`[SharedContent.modelUpdated] ERROR acquiring manifest for user=${userId}:`, err);
|
|
42
47
|
this.shareSync.onError(err, 'SharedContent.modelUpdated.manifest');
|
|
43
48
|
}
|
|
44
49
|
}
|
|
45
50
|
this.release();
|
|
51
|
+
console.log(`[SharedContent.modelUpdated] released content=${contentId} acquireCount=${this.acquireCount}`);
|
|
46
52
|
}
|
|
47
53
|
}
|
|
48
54
|
exports.SharedContent = SharedContent;
|