fix merge conflicts

This commit is contained in:
Ben Irvin 2023-03-27 10:48:47 +02:00
parent 205e5f9d55
commit 2621ea6325
3 changed files with 7 additions and 3 deletions

View File

@ -439,7 +439,7 @@ export const createPushController = handlerControllerFactory<Partial<PushHandler
this.flow = createFlow(DEFAULT_TRANSFER_FLOW);
this.provider = createLocalStrapiDestinationProvider({
...params,
...params.options,
autoDestroy: false,
getStrapi: () => strapi,
});

View File

@ -1,4 +1,5 @@
import type { ILocalStrapiDestinationProviderOptions } from '../../../../src/strapi/providers';
import type { TransferMethod } from '../../../../src/strapi/remote/constants';
export type CommandMessage = { type: 'command' } & (InitCommand | EndCommand | StatusCommand);
@ -12,7 +13,10 @@ export type GetCommandParams<T extends Command> = {
export type InitCommand = CreateCommand<
'init',
Pick<ILocalStrapiDestinationProviderOptions, 'strategy' | 'restore'>
{
options: Pick<ILocalStrapiDestinationProviderOptions, 'strategy' | 'restore'>;
transfer: TransferMethod;
}
>;
export type TransferKind = InitCommand['params']['transfer'];

View File

@ -1,4 +1,4 @@
import type { IEntity, ILink, IConfiguration, IAsset } from '../../../../common-entities';
import type { IEntity, ILink, IConfiguration } from '../../../../common-entities';
import { CreateTransferMessage } from './utils';
export type TransferPullMessage = CreateTransferMessage<