mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
missing changes
This commit is contained in:
parent
3563aef346
commit
868566f716
@ -31,7 +31,7 @@ export const unsubscribe = async (email: string): Promise<boolean> => {
|
|||||||
if (isLogin) {
|
if (isLogin) {
|
||||||
return await klicktippConnector.unsubscribe(email)
|
return await klicktippConnector.unsubscribe(email)
|
||||||
}
|
}
|
||||||
throw new LogError('Could not unsubscribe', email)
|
throw new Error(`Could not unsubscribe ${email}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getKlickTippUser = async (email: string): Promise<any> => {
|
export const getKlickTippUser = async (email: string): Promise<any> => {
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import jwt from 'jsonwebtoken'
|
import jwt from 'jsonwebtoken'
|
||||||
import CONFIG from '@/config/'
|
import CONFIG from '@/config/'
|
||||||
import { CustomJwtPayload } from './CustomJwtPayload'
|
import { CustomJwtPayload } from './CustomJwtPayload'
|
||||||
|
import LogError from '@/server/LogError'
|
||||||
|
|
||||||
export const decode = (token: string): CustomJwtPayload | null => {
|
export const decode = (token: string): CustomJwtPayload | null => {
|
||||||
if (!token) throw new LogError('401 Unauthorized')
|
if (!token) throw new LogError('401 Unauthorized')
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import Decimal from 'decimal.js-light'
|
import Decimal from 'decimal.js-light'
|
||||||
import CONFIG from '@/config'
|
import CONFIG from '@/config'
|
||||||
import { Decay } from '@model/Decay'
|
import { Decay } from '@model/Decay'
|
||||||
|
import LogError from '@/server/LogError'
|
||||||
|
|
||||||
// TODO: externalize all those definitions and functions into an external decay library
|
// TODO: externalize all those definitions and functions into an external decay library
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import connection from '@/typeorm/connection'
|
import connection from '@/typeorm/connection'
|
||||||
import { getKlickTippUser } from '@/apis/KlicktippController'
|
import { getKlickTippUser } from '@/apis/KlicktippController'
|
||||||
import { User } from '@entity/User'
|
import { User } from '@entity/User'
|
||||||
|
import LogError from '@/server/LogError'
|
||||||
|
|
||||||
export async function retrieveNotRegisteredEmails(): Promise<string[]> {
|
export async function retrieveNotRegisteredEmails(): Promise<string[]> {
|
||||||
const con = await connection()
|
const con = await connection()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user