mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-28 20:04:26 +00:00
Merge pull request #30 from shumaiOne/feat/rename-metadata-field-key
refactor(metadata): rename field_id to field_key in AssetMetadataValue
This commit is contained in:
@@ -68,7 +68,7 @@ describe('Agent Autofill Workflow', () => {
|
||||
})
|
||||
mockActivities.extractAiMetadataActivity.mockResolvedValue(['/tmp/1.webp'])
|
||||
mockActivities.getProjectAutofillFieldsActivity.mockResolvedValue([
|
||||
{ id: 'f1', config: { name: 'F1', type: 'text' } },
|
||||
{ id: 'f1', key: 'f1', config: { name: 'F1', type: 'text' } },
|
||||
])
|
||||
mockActivities.getAgentAutofillContextActivity.mockResolvedValue({ agent: { id: 'b1' } })
|
||||
mockActivities.getAgentWorkerQueueActivity.mockResolvedValue('agent_queue')
|
||||
|
||||
@@ -121,7 +121,7 @@ export async function agentAutofillMedia(task: WorkflowTask): Promise<void> {
|
||||
teamId,
|
||||
images: generatedFiles,
|
||||
fields: fields.map((f) => ({
|
||||
id: f.id,
|
||||
id: f.key,
|
||||
config: f.config as unknown as PrismaJson.FieldConfig,
|
||||
description: f.description,
|
||||
})),
|
||||
|
||||
Reference in New Issue
Block a user