Skip to content

Commit

Permalink
fix: updater
Browse files Browse the repository at this point in the history
  • Loading branch information
thezzisu committed Feb 8, 2025
1 parent c23019d commit aef550b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .yarn/versions/d8c198eb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
releases:
"@aoi-js/frontend": patch
"@aoi-js/server": patch
2 changes: 0 additions & 2 deletions apps/server/src/cli/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,5 @@ startAsyncInterval(async () => {
})
if (resp.statusCode !== 200) {
server.log.error(`Failed to update contest status: ${resp.payload}`)
return
}
server.log.info('Contest status updated')
}, 1000)
2 changes: 1 addition & 1 deletion apps/server/src/db/contest.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { fastifyPlugin } from 'fastify-plugin'
import { BSON, Collection } from 'mongodb'

import { IUserProfile } from '../index.js'
import {
IContestProblemSettings,
IContestRanklistSettings,
IContestStage,
SContestParticipantRuleResult,
SContestSolutionRuleResult
} from '../schemas/contest.js'
import { IUserProfile } from '../schemas/index.js'
import { capabilityMask } from '../utils/capability.js'

import {
Expand Down
2 changes: 1 addition & 1 deletion apps/server/src/db/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { IAAAUserInfo } from '@lcpu/iaaa'
import { fastifyPlugin } from 'fastify-plugin'
import { BSON, Collection } from 'mongodb'

import { capabilityMask } from '../index.js'
import { IUserProfile } from '../schemas/index.js'
import { capabilityMask } from '../utils/index.js'

export const USER_CAPS = {
CAP_ADMIN: capabilityMask(0),
Expand Down

0 comments on commit aef550b

Please sign in to comment.