save the url in redis for 8 hours so rss-feeder will not try to re-save it
This commit is contained in:
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user