Files
botpress--botpress/integrations/odoo/src/odoo-client/actions/implementations/current-user/getCurrentUser.ts
T
2026-07-13 13:34:48 +08:00

11 lines
284 B
TypeScript

import { wrapAction } from '../../action-wrapper'
export const getCurrentUser = wrapAction(
{ actionName: 'getCurrentUser', errorMessage: 'Failed to get current Odoo user' },
async ({ odooClient }) => {
const id = await odooClient.getCurrentUserId()
return { id }
}
)