Skip to content

Commit 587addc

Browse files
authored
Adding logging to modifyAccount (#1699)
1 parent 1030e76 commit 587addc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

functions/src/auth/modifyAccount.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@ export const modifyAccount = functions.https.onCall(async (data, context) => {
1717

1818
const { uid, role } = checkRequestZod(Request, data)
1919

20+
console.log(`Setting role for ${uid} to ${role}`)
21+
2022
await setRole({ role, auth, db, uid })
2123
})

0 commit comments

Comments
 (0)