Skip to content

Commit

Permalink
Don't delete user created ufbts weekly
Browse files Browse the repository at this point in the history
  • Loading branch information
Keskimaki committed Oct 20, 2023
1 parent 68e93b7 commit d9d96c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/updater/updateStudentFeedbackTargets.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ const updateStudentFeedbackTargets = async () => {
await sequelize.query(
`DELETE FROM user_feedback_targets WHERE feedback_id IS NULL
AND access_status = 'STUDENT'
AND feedback_open_email_sent = false`,
AND feedback_open_email_sent = false
AND user_created = false`,
)
}

Expand Down

0 comments on commit d9d96c4

Please sign in to comment.