Skip to content

Commit

Permalink
Rename QueryInterfaceInformationRequest to QueryInterfaceCreateRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
gartens committed Jun 28, 2024
1 parent 8ba7b7c commit 0c13ae4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/app/views/query-interfaces/query-interfaces.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {RelationalResult} from '../../components/data-view/models/result-set.mod
import {
QueryInterface,
QueryInterfaceInformation,
QueryInterfaceInformationRequest,
QueryInterfaceCreateRequest,
QueryInterfaceSetting
} from './query-interfaces.model';
import {LeftSidebarService} from '../../components/left-sidebar/left-sidebar.service';
Expand Down Expand Up @@ -190,13 +190,13 @@ export class QueryInterfacesComponent implements OnInit, OnDestroy {
if (!this.availableQIUniqueNameForm.valid) {
return;
}
const deploy: QueryInterfaceInformationRequest = {
const deploy: QueryInterfaceCreateRequest = {
interfaceName: this.editingAvailableQI.interfaceName,
uniqueName: this.availableQIUniqueNameForm.controls['uniqueName'].value,
currentSettings: new Map()
settings: new Map()
};
for (const [k, v] of Object.entries(this.editingAvailableQIForm.controls)) {
deploy.currentSettings[k] = v.value;
deploy.settings[k] = v.value;
}
this._crud.createQueryInterface(deploy).subscribe({
next: _ => {
Expand Down
4 changes: 2 additions & 2 deletions src/app/views/query-interfaces/query-interfaces.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export interface QueryInterfaceSetting {
options: string[];
}

export interface QueryInterfaceInformationRequest {
export interface QueryInterfaceCreateRequest {
interfaceName: string;
uniqueName: string;
currentSettings: Map<string, string>;
settings: Map<string, string>;
}

0 comments on commit 0c13ae4

Please sign in to comment.