chore: import upstream snapshot with attribution
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
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 }
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user