Skip to content

Commit a2d1cc8

Browse files
committed
debug logging
1 parent 9bae1bd commit a2d1cc8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/server/routes/openai.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,11 @@ openaiRouter.post('/stream', upload.single('file'), async (r, res) => {
163163
})
164164

165165
const consentToSave =
166-
['testUser', 'mluukkai'].includes(user.username) && courseId === 'sandbox'
166+
['testUser', 'mluukkai', 'admini2'].includes(user.username) &&
167+
courseId === 'sandbox'
167168

168169
// eslint-disable-next-line no-console
169-
console.log('consentToSave', consentToSave)
170+
console.log('consentToSave', consentToSave, user.username)
170171

171172
if (consentToSave) {
172173
const discussion = {

0 commit comments

Comments
 (0)