mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 02:19:54 +02:00
Added migration for TagTeamData
This commit is contained in:
parent
7a036821d9
commit
ef749f9b8c
3 changed files with 65 additions and 3 deletions
20
module/systemRegistration/migration-handlers/2_6_0.mjs
Normal file
20
module/systemRegistration/migration-handlers/2_6_0.mjs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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') {
|
||||
return {
|
||||
_id: actor._id,
|
||||
system: {
|
||||
tagTeam: {
|
||||
initiator: null,
|
||||
members: _replace({})
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue