mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
remove obsolete function
This commit is contained in:
parent
870c97ce71
commit
d3a2df2878
@ -54,7 +54,7 @@ export async function validateCommunities(): Promise<void> {
|
||||
// DbCommunity.delete({ id: dbCom.id })
|
||||
}
|
||||
} catch (err) {
|
||||
if (!isLogError(err)) {
|
||||
if (!(err instanceof LogError)) {
|
||||
logger.error(`Error:`, err)
|
||||
}
|
||||
}
|
||||
@ -66,7 +66,3 @@ export async function validateCommunities(): Promise<void> {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function isLogError(err: unknown) {
|
||||
return err instanceof LogError
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user