Skip to content

Commit

Permalink
id should be string
Browse files Browse the repository at this point in the history
  • Loading branch information
nad-au committed Mar 12, 2024
1 parent 0ff88fb commit e869f4b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const updateDataCollectionRecordValue = async (
) => {
const { dataCollectionRecordValues: client } = actionStepClient(tokenClient)

const testDataCollectionRecordValueId = 629
const testDataCollectionRecordValueId = 'test-629'

const { data, error } = await client.updateDataCollectionRecordValue(
testDataCollectionRecordValueId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export namespace DataCollectionRecordValues {
* @description Unique identifier for a data collection record value.
* @example 608
*/
id: number
id: string
}
}
requestBody: components['requestBodies']['UpdateDataCollectionRecordValue']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const getDataCollectionRecordValue = async (

export const updateDataCollectionRecordValue = async (
client: DataCollectionRecordValuesClient,
id: number,
id: string,
body: DataCollectionRecordValuesUpdate,
) => {
return client.PUT('/datacollectionrecordvalues/{id}', {
Expand Down Expand Up @@ -93,7 +93,7 @@ export const dataCollectionRecordValuesClient = (
params?: Record<string, unknown>,
) => getDataCollectionRecordValue(client, id, params),
updateDataCollectionRecordValue: (
id: number,
id: string,
body: DataCollectionRecordValuesUpdate,
) => updateDataCollectionRecordValue(client, id, body),
}
Expand Down

0 comments on commit e869f4b

Please sign in to comment.