mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-29 21:55:33 +00:00
21 lines
496 B
TypeScript
21 lines
496 B
TypeScript
import { Connection } from '@/typeorm/connection'
|
|
|
|
import { exportEventDataToKlickTipp } from './klicktipp'
|
|
|
|
async function executeKlicktipp(): Promise<boolean> {
|
|
const connection = await Connection.getInstance()
|
|
if (connection) {
|
|
await exportEventDataToKlickTipp()
|
|
await connection.close()
|
|
return true
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
|
|
executeKlicktipp().catch((e) => {
|
|
// biome-ignore lint/suspicious/noConsole: logger isn't used here
|
|
console.error(e)
|
|
process.exit(1)
|
|
})
|