Skip to content

Commit

Permalink
Don't remove user created teacher ufbts
Browse files Browse the repository at this point in the history
  • Loading branch information
Keskimaki committed Oct 24, 2023
1 parent 271f925 commit 1e605cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ const updateCoursesAndTeacherFeedbackTargets = async () => {
if (new Date().getDay() === 0) {
logger.info('[UPDATER] Deleting teacher rights', {})
await sequelize.query(
`DELETE FROM user_feedback_targets WHERE feedback_id IS NULL AND is_teacher(access_status) AND user_id != 'abc1234'`,
`DELETE FROM user_feedback_targets WHERE feedback_id IS NULL AND is_teacher(access_status) AND user_created = false AND user_id != 'abc1234'`,
)
}

Expand Down

0 comments on commit 1e605cb

Please sign in to comment.