save the url in redis for 8 hours so rss-feeder will not try to re-save it

This commit is contained in:
Hongbo Wu
2024-01-04 18:03:34 +08:00
parent 0f774b6ae4
commit 08c4624fce
6 changed files with 43 additions and 1 deletions

View File

@ -15,6 +15,7 @@ import { config, loggers } from 'winston'
import { makeApolloServer } from './apollo'
import { appDataSource } from './data_source'
import { env } from './env'
import { redisClient } from './redis'
import { articleRouter } from './routers/article_router'
import { authRouter } from './routers/auth/auth_router'
import { mobileAuthRouter } from './routers/auth/mobile/mobile_auth_router'
@ -157,6 +158,8 @@ const main = async (): Promise<void> => {
// as healthy.
await appDataSource.initialize()
await redisClient.connect()
const { app, apollo, httpServer } = createApp()
await apollo.start()