Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using ItemsService to update items not logging activity #11460

Closed
3 tasks done
ranaharoon3222 opened this issue Feb 6, 2022 · 0 comments
Closed
3 tasks done

using ItemsService to update items not logging activity #11460

ranaharoon3222 opened this issue Feb 6, 2022 · 0 comments

Comments

@ranaharoon3222
Copy link

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

@directus directus locked and limited conversation to collaborators Feb 7, 2022
@azrikahar azrikahar converted this issue into discussion #11466 Feb 7, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant