mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-21 18:09:54 +02:00
20 lines
No EOL
555 B
JavaScript
20 lines
No EOL
555 B
JavaScript
import { MigrationHandlerBase } from './base.mjs';
|
|
|
|
export class Migration_2_6_0 extends MigrationHandlerBase {
|
|
version = '2.6.0';
|
|
|
|
/** @inheritdoc */
|
|
async updateActorSource(actor) {
|
|
if (actor.type === 'party' && Object.keys(actor.system.tagTeam.members).length) {
|
|
return {
|
|
_id: actor._id,
|
|
system: {
|
|
tagTeam: {
|
|
initiator: null,
|
|
members: _replace({})
|
|
}
|
|
}
|
|
};
|
|
}
|
|
}
|
|
} |