This commit is contained in:
2025-06-11 16:05:19 +02:00
parent 084f27ec91
commit bc591f687f
4 changed files with 69 additions and 6 deletions

View File

@@ -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);