From 14bd9aae81f466871fa8153d7eea18344f3df4f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claus-Peter=20H=C3=BCbner?= Date: Thu, 18 Aug 2022 19:09:20 +0200 Subject: [PATCH] linting --- backend/src/util/communityUser.ts | 98 +++++++++++++++---------------- 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/backend/src/util/communityUser.ts b/backend/src/util/communityUser.ts index 45fb6d4fb..2f0743270 100644 --- a/backend/src/util/communityUser.ts +++ b/backend/src/util/communityUser.ts @@ -1,49 +1,49 @@ -/* eslint-disable @typescript-eslint/no-unused-vars */ - -import { SaveOptions, RemoveOptions } from '@dbTools/typeorm' -import { User as dbUser } from '@entity/User' -import { UserContact } from '@entity/UserContact' -// import { UserContact as EmailContact } from '@entity/UserContact' -import { User } from '@model/User' - -const communityDbUser: dbUser = { - id: -1, - gradidoID: '11111111-2222-4333-4444-55555555', - alias: '', - // email: 'support@gradido.net', - emailContact: new UserContact(), - firstName: 'Gradido', - lastName: 'Akademie', - pubKey: Buffer.from(''), - privKey: Buffer.from(''), - deletedAt: null, - password: BigInt(0), - // emailHash: Buffer.from(''), - createdAt: new Date(), - // emailChecked: false, - language: '', - isAdmin: null, - publisherId: 0, - passphrase: '', - hasId: function (): boolean { - throw new Error('Function not implemented.') - }, - save: function (options?: SaveOptions): Promise { - throw new Error('Function not implemented.') - }, - remove: function (options?: RemoveOptions): Promise { - throw new Error('Function not implemented.') - }, - softRemove: function (options?: SaveOptions): Promise { - throw new Error('Function not implemented.') - }, - recover: function (options?: SaveOptions): Promise { - throw new Error('Function not implemented.') - }, - reload: function (): Promise { - throw new Error('Function not implemented.') - }, -} -const communityUser = new User(communityDbUser) - -export { communityDbUser, communityUser } +/* eslint-disable @typescript-eslint/no-unused-vars */ + +import { SaveOptions, RemoveOptions } from '@dbTools/typeorm' +import { User as dbUser } from '@entity/User' +import { UserContact } from '@entity/UserContact' +// import { UserContact as EmailContact } from '@entity/UserContact' +import { User } from '@model/User' + +const communityDbUser: dbUser = { + id: -1, + gradidoID: '11111111-2222-4333-4444-55555555', + alias: '', + // email: 'support@gradido.net', + emailContact: new UserContact(), + firstName: 'Gradido', + lastName: 'Akademie', + pubKey: Buffer.from(''), + privKey: Buffer.from(''), + deletedAt: null, + password: BigInt(0), + // emailHash: Buffer.from(''), + createdAt: new Date(), + // emailChecked: false, + language: '', + isAdmin: null, + publisherId: 0, + passphrase: '', + hasId: function (): boolean { + throw new Error('Function not implemented.') + }, + save: function (options?: SaveOptions): Promise { + throw new Error('Function not implemented.') + }, + remove: function (options?: RemoveOptions): Promise { + throw new Error('Function not implemented.') + }, + softRemove: function (options?: SaveOptions): Promise { + throw new Error('Function not implemented.') + }, + recover: function (options?: SaveOptions): Promise { + throw new Error('Function not implemented.') + }, + reload: function (): Promise { + throw new Error('Function not implemented.') + }, +} +const communityUser = new User(communityDbUser) + +export { communityDbUser, communityUser }