Cleanup after rebase

This commit is contained in:
Jackson Harper 2024-01-16 21:31:44 +08:00
parent f184c8baff
commit ba3e5b053d
2 changed files with 3 additions and 6 deletions

View file

@ -190,14 +190,12 @@ const main = async (): Promise<void> => {
listener.timeout = 640 * 1000 // match headersTimeout
process.on('SIGINT', async () => {
if (redisClient) {
await redisClient.quit()
console.log('Redis client closed.')
}
await appDataSource.destroy()
console.log('DB connection closed.')
await redisDataSource.shutdown()
console.log('Redis connection closed.')
process.exit(0)
})
}

View file

@ -8,7 +8,6 @@ import { Label } from '../entity/label'
import { LibraryItem, LibraryItemState } from '../entity/library_item'
import { BulkActionType, InputMaybe, SortParams } from '../generated/graphql'
import { createPubSubClient, EntityType } from '../pubsub'
import { redisClient } from '../redis'
import {
authTrx,
getColumns,