Skip to content

Commit 78ab40c

Browse files
author
seyed
committed
fix(hooks): fixed issue where me and refresh hooks were not logged
1 parent 45c838a commit 78ab40c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/log-builders/collections/me/me.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const meCollectionLogBuilder: CollectionMeHook = ({
1010
context,
1111
user,
1212
}) => {
13-
if ((context.userHookConfig as TrackedCollection).hooks?.afterLogin?.login?.enabled) {
13+
if ((context.userHookConfig as TrackedCollection).hooks?.me?.me?.enabled) {
1414
const log: AuditorLog = {
1515
action: 'me',
1616
collection: args.collection.config.slug,

src/core/log-builders/collections/refresh/refresh.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const refreshCollectionLogBuilder: CollectionRefreshHook = ({
1010
context,
1111
user,
1212
}) => {
13-
if ((context.userHookConfig as TrackedCollection).hooks?.afterLogin?.login?.enabled) {
13+
if ((context.userHookConfig as TrackedCollection).hooks?.refresh?.refresh?.enabled) {
1414
const log: AuditorLog = {
1515
action: 'refresh',
1616
collection: args.collection.config.slug,

0 commit comments

Comments
 (0)