Skip to content

Commit

Permalink
test: test test test
Browse files Browse the repository at this point in the history
  • Loading branch information
luifermoron committed Mar 21, 2024
1 parent 420c236 commit f18d51b
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions lib/useCases/LeaseContractUseCases.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import AbstractUseCases from './AbstractUseCases';
import { generateGoogleUrlRedirect } from '../drivers/network/googleapis';
import { daysBetween, monthsBetween } from '../utils/datesHelper';
import EventUseCases from './EventUseCases';
import PropertyUseCases from './PropertyUseCases';
import TaskUseCases from './TaskUseCases';
import TenantUseCases from './TenantUseCases';

Expand Down Expand Up @@ -65,24 +66,23 @@ export default class LeaseContractUseCases extends AbstractUseCases<
const object = unknownObj as unknown;
const objValues = object as StepMapper;

const tenant = objValues[0];
const property = objValues[1];
/* const tenantUseCase = new TenantUseCases();
if (tenant._id)
await tenantUseCase.update(unknownObj[0] as Record<string, unknown>);
else
tenant = await tenantUseCase.create(
unknownObj[0] as Record<string, unknown>
);
let tenant = objValues[0];
const tenantUseCase = new TenantUseCases();
if (tenant._id)
await tenantUseCase.update(unknownObj[0] as Record<string, unknown>);
else
tenant = await tenantUseCase.create(
unknownObj[0] as Record<string, unknown>
);

let property = objValues[1];
const propertyUseCase = new PropertyUseCases();
if (property._id)
await propertyUseCase.update(unknownObj[1] as Record<string, unknown>);
else
property = await propertyUseCase.create(
unknownObj[1] as Record<string, unknown>
); */
let property = objValues[1];
const propertyUseCase = new PropertyUseCases();
if (property._id)
await propertyUseCase.update(unknownObj[1] as Record<string, unknown>);
else
property = await propertyUseCase.create(
unknownObj[1] as Record<string, unknown>
);

const workInProgressState = (
this.repository as LeaseContractRepository
Expand Down

0 comments on commit f18d51b

Please sign in to comment.