fixes
This commit is contained in:
@@ -37,12 +37,29 @@ export const getInterests = async () =>
|
||||
},
|
||||
});
|
||||
|
||||
export const getInterestById = async (id: string) =>
|
||||
$fetch<Interest>(`${createTableUrl(Table.Interest)}/${id}`, {
|
||||
export const getInterestById = async (id: string) => {
|
||||
console.log('[nocodb.getInterestById] Fetching interest ID:', id);
|
||||
|
||||
const result = await $fetch<Interest>(`${createTableUrl(Table.Interest)}/${id}`, {
|
||||
headers: {
|
||||
"xc-token": getNocoDbConfiguration().token,
|
||||
},
|
||||
});
|
||||
|
||||
console.log('[nocodb.getInterestById] Raw result from NocoDB:', {
|
||||
id: result.Id,
|
||||
documensoID: result['documensoID'],
|
||||
documensoID_type: typeof result['documensoID'],
|
||||
documensoID_value: JSON.stringify(result['documensoID']),
|
||||
signatureLinks: {
|
||||
client: result['Signature Link Client'],
|
||||
cc: result['Signature Link CC'],
|
||||
developer: result['Signature Link Developer']
|
||||
}
|
||||
});
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
export const updateInterest = async (id: string, data: Partial<Interest>, retryCount = 0): Promise<Interest> => {
|
||||
console.log('[nocodb.updateInterest] Updating interest:', id, 'Retry:', retryCount);
|
||||
|
||||
Reference in New Issue
Block a user