generated from alphane/template
This commit is contained in:
+2
-2
@@ -1,9 +1,9 @@
|
||||
import { API_PORT, APPLICATION_NAME } from "@/config"
|
||||
import { API_PORT, APPLICATION_NAME, GIT_COMMIT_HASH, RELEASE_TAG } from "@/config"
|
||||
import logger from "@/utils/logger"
|
||||
import app from "@/app"
|
||||
import { enqueueJobs } from "@/scheduler"
|
||||
|
||||
app.listen(API_PORT, async () => {
|
||||
logger.info(`${APPLICATION_NAME} API listenting on port ${API_PORT}`)
|
||||
logger.info(`${APPLICATION_NAME} API listenting on port ${API_PORT} (${RELEASE_TAG} ${GIT_COMMIT_HASH})`)
|
||||
await enqueueJobs()
|
||||
})
|
||||
|
||||
@@ -90,6 +90,7 @@
|
||||
import { isEmpty, isNil } from "lodash"
|
||||
import { computed, ref, watch } from "vue"
|
||||
|
||||
import { MAX_PER_PAGE } from "@/api/base-api"
|
||||
import useFlashcardDeck from "@/use/use-flashcard-deck"
|
||||
import useFlashcards, { type Flashcard, FlashcardQueryOptions } from "@/use/use-flashcards"
|
||||
|
||||
@@ -113,6 +114,7 @@ const flashcardsQueryOptions = computed<FlashcardQueryOptions>(() => {
|
||||
where: {
|
||||
flashcardDeckId: flashcardDeck.value?.id,
|
||||
},
|
||||
perPage: MAX_PER_PAGE,
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user