Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 8a96143

Browse files
reorder of query execution
1 parent c48880e commit 8a96143

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/services/groupsService.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@ async function createGroupContestEligibility (connection, eligibilityId, groupId
167167
*/
168168
async function clearData (connection, eligibilityId, groupId) {
169169
let query
170-
query = await prepare(connection, QUERY_DELETE_CONTEST_ELIGIBILITY)
171-
await query.executeAsync([eligibilityId])
172-
173170
query = await prepare(connection, QUERY_DELETE_GROUP_CONTEST_ELIGIBILITY)
174171
await query.executeAsync([eligibilityId, groupId])
172+
173+
query = await prepare(connection, QUERY_DELETE_CONTEST_ELIGIBILITY)
174+
await query.executeAsync([eligibilityId])
175175
}
176176

177177
module.exports = {

0 commit comments

Comments
 (0)