타입 변경

This commit is contained in:
hyeonsu 2025-09-15 10:53:33 +09:00
parent af08b67331
commit dbad9bbc0c
2 changed files with 15 additions and 15 deletions

View File

@ -424,14 +424,14 @@ export class EventTriggerService {
await this.executeUpdateAction(
action.targetTable,
targetData,
null // 액션별 조건은 이미 평가했으므로 WHERE 조건은 null
undefined // 액션별 조건은 이미 평가했으므로 WHERE 조건은 undefined
);
break;
case "delete":
await this.executeDeleteAction(
action.targetTable,
targetData,
null // 액션별 조건은 이미 평가했으므로 WHERE 조건은 null
undefined // 액션별 조건은 이미 평가했으므로 WHERE 조건은 undefined
);
break;
case "upsert":

View File

@ -70,9 +70,9 @@ interface DataSaveSettings {
}>;
fieldMappings: Array<{
sourceTable?: string;
sourceField: string;
sourceField: string;
targetTable?: string;
targetField: string;
targetField: string;
defaultValue?: string;
transformFunction?: string;
}>;
@ -675,7 +675,7 @@ export const ConnectionSetupModal: React.FC<ConnectionSetupModalProps> = ({
</div>
<div className="space-y-4">
{/* 액션 목록 */}
<div>
<div>
<div className="mb-2 flex items-center justify-between">
<Label className="text-sm font-medium"> </Label>
<Button
@ -715,7 +715,7 @@ export const ConnectionSetupModal: React.FC<ConnectionSetupModalProps> = ({
{dataSaveSettings.actions.map((action, actionIndex) => (
<div key={action.id} className="rounded border bg-white p-3">
<div className="mb-3 flex items-center justify-between">
<Input
<Input
value={action.name}
onChange={(e) => {
const newActions = [...dataSaveSettings.actions];
@ -736,11 +736,11 @@ export const ConnectionSetupModal: React.FC<ConnectionSetupModalProps> = ({
>
<Trash2 className="h-3 w-3" />
</Button>
</div>
</div>
<div className="grid grid-cols-1 gap-3">
{/* 액션 타입 */}
<div>
<div>
<Label className="text-xs"> </Label>
<Select
value={action.actionType}
@ -767,7 +767,7 @@ export const ConnectionSetupModal: React.FC<ConnectionSetupModalProps> = ({
<div className="mt-3">
<details className="group">
<summary className="flex cursor-pointer items-center justify-between rounded border p-2 text-xs font-medium text-gray-700 hover:bg-gray-50 hover:text-gray-900">
<div className="flex items-center gap-2">
<div className="flex items-center gap-2">
🔍 ()
{action.conditions && action.conditions.length > 0 && (
<span className="rounded-full bg-blue-100 px-2 py-0.5 text-xs text-blue-700">
@ -893,7 +893,7 @@ export const ConnectionSetupModal: React.FC<ConnectionSetupModalProps> = ({
dataType.includes("date")
) {
return (
<Input
<Input
type="datetime-local"
value={condition.value}
onChange={(e) => {
@ -997,12 +997,12 @@ export const ConnectionSetupModal: React.FC<ConnectionSetupModalProps> = ({
className="h-6 w-6 p-0"
>
<Trash2 className="h-2 w-2" />
</Button>
</div>
</Button>
</div>
))}
</div>
</div>
)}
</div>
</div>
</details>
</div>
@ -1043,7 +1043,7 @@ export const ConnectionSetupModal: React.FC<ConnectionSetupModalProps> = ({
<div className="mt-2 space-y-2 border-l-2 border-gray-100 pl-4">
<Label className="text-xs font-medium"> </Label>
<div className="mt-1 grid grid-cols-3 gap-2">
<div>
<div>
<Label className="text-xs text-gray-500"> </Label>
<Select
value={action.splitConfig?.sourceField || ""}