Skip to content

Commit

Permalink
fix: updater and ui (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
thezzisu authored Feb 8, 2025
1 parent 0e22cb0 commit 4531926
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .yarn/versions/1c1df898.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
releases:
"@aoi-js/frontend": patch
"@aoi-js/server": patch
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@
<VTab
prepend-icon="mdi-upload-outline"
value="submit"
v-if="value.config && (settings.solutionEnabled || admin)"
v-if="
value.config &&
((settings.solutionEnabled &&
settings.problemAllowCreateSolution &&
!contestProblem.settings.disableCreateSolution) ||
admin)
"
>
{{ t('tabs.submit') }}
</VTab>
Expand Down Expand Up @@ -120,7 +126,13 @@
<VTab
prepend-icon="mdi-upload-outline"
value="submit"
v-if="value.config && (settings.solutionEnabled || admin)"
v-if="
value.config &&
((settings.solutionEnabled &&
settings.problemAllowCreateSolution &&
!contestProblem.settings.disableCreateSolution) ||
admin)
"
>
{{ t('tabs.submit') }}
</VTab>
Expand Down
3 changes: 1 addition & 2 deletions apps/server/src/cli/updater.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
import { fastify } from 'fastify'

import { authProviderPlugin } from '../auth/index.js'
import { cachePlugin } from '../cache/index.js'
import { ContestStatus, dbPlugin } from '../db/index.js'
import { logger } from '../utils/logger.js'
Expand All @@ -9,7 +9,6 @@ const server = fastify({ loggerInstance: logger })

await server.register(dbPlugin)
await server.register(cachePlugin)
await server.register(authProviderPlugin)

server.post('/contest/update-status', async () => {
const { db } = server
Expand Down

0 comments on commit 4531926

Please sign in to comment.