Fixed scene tag delta storage format for actor associations.
This commit is contained in:
@@ -967,6 +967,13 @@ export async function createSceneRevision(sceneId, { edits, comment, apply }, re
|
|||||||
return [key, values.id];
|
return [key, values.id];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (key === 'tags') {
|
||||||
|
return [key, values.map((tag) => ({
|
||||||
|
id: tag.id,
|
||||||
|
actorId: tag.actorId,
|
||||||
|
}))];
|
||||||
|
}
|
||||||
|
|
||||||
if (Array.isArray(values)) {
|
if (Array.isArray(values)) {
|
||||||
return [key, values.map((value) => value?.hash || value?.id || value)];
|
return [key, values.map((value) => value?.hash || value?.id || value)];
|
||||||
}
|
}
|
||||||
@@ -983,6 +990,16 @@ export async function createSceneRevision(sceneId, { edits, comment, apply }, re
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (key === 'tags') {
|
||||||
|
return {
|
||||||
|
key,
|
||||||
|
value: value.map((tag) => ({
|
||||||
|
id: tag.id,
|
||||||
|
actorId: tag.actorId,
|
||||||
|
})),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
if (Array.isArray(value)) {
|
if (Array.isArray(value)) {
|
||||||
const valueSet = new Set(value);
|
const valueSet = new Set(value);
|
||||||
const baseSet = new Set(baseScene[key]);
|
const baseSet = new Set(baseScene[key]);
|
||||||
|
|||||||
Reference in New Issue
Block a user