fix lint issue (#65)

This commit is contained in:
Andy Yen
2024-04-02 17:53:26 +08:00
committed by GitHub
parent 8d69cbbe67
commit c30cfe05c6
2 changed files with 1 additions and 14 deletions
@@ -6,7 +6,7 @@ import {
SampleDatasetData,
} from '../types';
import { getLogger } from '@server/utils';
import { Model, ModelColumn, Project, Relation } from '../repositories';
import { Model, ModelColumn, Project } from '../repositories';
import {
SampleDatasetName,
SampleDatasetRelationship,
@@ -1,4 +1,3 @@
import { DataSourceStrategyFactory } from '../factories/onboardingFactory';
import {
IModelColumnRepository,
IModelRepository,
@@ -51,18 +50,6 @@ export class ModelService implements IModelService {
return `${sourceTableName}_${existedReferenceNames.length + 1}`;
}
public async saveModels(strategy: DataSourceStrategyFactory, tables: any) {
const project = await this.projectService.getCurrentProject();
const projectId = project.id;
// delete existing models and columns
await this.resetCurrentProjectModel(projectId);
// create model and columns
const { models, columns } = await strategy.saveModels(tables);
}
public async saveRelations(relations: RelationData[]) {
const project = await this.projectService.getCurrentProject();