+
+ // We have an old value, let's find it.
+ const index = internals.forums.findIndex((element) => element.id === data.old_val.id);
+
+ if (index > -1) {
+ console.log(`Found old data at index ${index}`);
+
+ if (data.new_val) {
+ return internals.forums.splice(index, 1, data.new_val || undefined);
+ }
+
+ return internals.forums.splice(index, 1);
+ }
+ }