Attachment Sync: Fehlerbehebung bei Join

This commit is contained in:
hydrant
2020-05-11 15:50:54 +02:00
parent 1242ae575b
commit 04538bddf2
3 changed files with 14 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ class RageEntity implements IEntity {
return this.entity.id;
}
get remoteId(): any {
get remoteId(): number {
return this.entity.remoteId;
}
@@ -79,10 +79,10 @@ class RageEntityAttachmentPool implements IEntityAttachmentPool {
}
find(entity: EntityMp): IEntityAttachments {
for (let i of this.attachmentPool.keys()) {
for (let i of this.attachmentPool.keys()) {
let pool = this.attachmentPool[i];
for (let obj of pool.__attachmentObjects) {
if (entity == obj) { return pool;}
if (entity == obj) { return pool; }
}
}
return null;