2021-07-25 14:15:01 +00:00
|
|
|
import {Migration} from '../Migration'
|
2022-01-27 01:37:54 +00:00
|
|
|
import {BaseEvent} from '../../../support/bus'
|
2022-03-29 13:46:24 +00:00
|
|
|
import {Awaitable} from '../../../util'
|
2021-07-25 14:15:01 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Generic base-class for migration-related events.
|
|
|
|
*/
|
2022-01-27 01:37:54 +00:00
|
|
|
export abstract class MigrationEvent extends BaseEvent {
|
2021-07-25 14:15:01 +00:00
|
|
|
constructor(
|
2022-01-27 01:37:54 +00:00
|
|
|
public readonly migration: Migration,
|
2021-07-25 14:15:01 +00:00
|
|
|
) {
|
|
|
|
super()
|
|
|
|
}
|
2022-03-29 13:46:24 +00:00
|
|
|
|
|
|
|
shouldBroadcast(): Awaitable<boolean> {
|
|
|
|
return false
|
|
|
|
}
|
2021-07-25 14:15:01 +00:00
|
|
|
}
|