타입 변경

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( await this.executeUpdateAction(
action.targetTable, action.targetTable,
targetData, targetData,
null // 액션별 조건은 이미 평가했으므로 WHERE 조건은 null undefined // 액션별 조건은 이미 평가했으므로 WHERE 조건은 undefined
); );
break; break;
case "delete": case "delete":
await this.executeDeleteAction( await this.executeDeleteAction(
action.targetTable, action.targetTable,
targetData, targetData,
null // 액션별 조건은 이미 평가했으므로 WHERE 조건은 null undefined // 액션별 조건은 이미 평가했으므로 WHERE 조건은 undefined
); );
break; break;
case "upsert": case "upsert":

View File

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