修改完成待测试
This commit is contained in:
@@ -89,11 +89,12 @@ export const lifeRecordApi = {
|
||||
|
||||
async createGrowthRecord(genealogyId, payload, requestOptions = {}) {
|
||||
const normalizedGenealogyId = normalizeGenealogyPathId(genealogyId)
|
||||
return requestStrict({
|
||||
const growthRecord = await requestStrict({
|
||||
url: `/genealogy/app/genealogies/${normalizedGenealogyId}/growth-records`,
|
||||
method: 'POST',
|
||||
data: normalizeGrowthRecordCreatePayload(payload)
|
||||
}, { requestController: requestOptions.requestController ?? null })
|
||||
return normalizeAppGrowthRecord(growthRecord, normalizedGenealogyId)
|
||||
},
|
||||
|
||||
async updateGrowthRecord(genealogyId, recordId, payload, requestOptions = {}) {
|
||||
|
||||
Reference in New Issue
Block a user