Move handlers and clean up

This commit is contained in:
Henrik Hüttemann
2023-06-07 18:23:20 +02:00
parent ae3353c6cb
commit 4692c7edea
7 changed files with 30 additions and 15 deletions
+4
View File
@@ -10,6 +10,10 @@ const AppDataSource = new DataSource({
logging: false,
})
export async function initStorage() {
await AppDataSource.initialize()
}
export function getMapping(id: string, type: number) {
return AppDataSource.manager.findOneBy(IdMapping, {
rcId: id,
+1 -1
View File
@@ -1,5 +1,5 @@
import { access_token } from '../config/synapse_access_token.json'
import axios from 'axios'
import { access_token } from '../config/synapse_access_token.json'
import log from './logger'
import { getAccessToken } from './storage'