You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's no other issue that already describes my problem.
Describe the Bug
I am using hooks to update items using "ItemsService" but when I use "ItemsService.updateOne" it's updating everything correctly but didn't post to activity so I can't see any activity log. But when I use Axios it works fine. Also, how can I authenticate in hooks to get Bearer Token so I can include it in Axios headers?
Preflight Checklist
Describe the Bug
I am using hooks to update items using "ItemsService" but when I use "ItemsService.updateOne" it's updating everything correctly but didn't post to activity so I can't see any activity log. But when I use Axios it works fine. Also, how can I authenticate in hooks to get Bearer Token so I can include it in Axios headers?
To Reproduce
` const orderService = new ItemsService('orders', {
schema: await getSchema(),
});
await orderService.updateOne(key, {
total: order.data.total - price,
totalWithOutShipping: order.data.totalWithOutShipping - price,
});
`
Errors Shown
nothing just not creating activity log if i use itemService
What version of Directus are you using?
9.5.1
What version of Node.js are you using?
v14.16.1
What database are you using?
mysql
What browser are you using?
chrome
What operating system are you using?
windows 10
How are you deploying Directus?
running locally
The text was updated successfully, but these errors were encountered: