adding flushdb when boots
This commit is contained in:
parent
c1cd533ada
commit
1605f63691
2
index.js
2
index.js
|
@ -4,6 +4,7 @@ const express = require('express')
|
||||||
const cors = require('cors')
|
const cors = require('cors')
|
||||||
|
|
||||||
const logger = require('./utils/logger.js')
|
const logger = require('./utils/logger.js')
|
||||||
|
const redis = require('./utils/redis.js')
|
||||||
const auto = require('./utils/auto.js')
|
const auto = require('./utils/auto.js')
|
||||||
|
|
||||||
const latestController = require('./controller/latest.js')
|
const latestController = require('./controller/latest.js')
|
||||||
|
@ -34,6 +35,7 @@ app.ws('/saveplaylist', websocketController.playlist)
|
||||||
app.ws('/savechannel', websocketController.channel)
|
app.ws('/savechannel', websocketController.channel)
|
||||||
app.get('/autodownload', websocketController.addAutodownload)
|
app.get('/autodownload', websocketController.addAutodownload)
|
||||||
|
|
||||||
|
redis.flushdb()
|
||||||
auto.handleCheck()
|
auto.handleCheck()
|
||||||
// setInterval(() => {
|
// setInterval(() => {
|
||||||
// auto.handleCheck()
|
// auto.handleCheck()
|
||||||
|
|
Loading…
Reference in New Issue