mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
update database for dlt connector
This commit is contained in:
parent
a867a0eba7
commit
0306fab49a
@ -16,7 +16,8 @@ import { UserContact } from '../UserContact'
|
||||
import { UserRole } from '../UserRole'
|
||||
import { GeometryTransformer } from '../../src/typeorm/GeometryTransformer'
|
||||
import { Community } from '../Community'
|
||||
import { DltUser } from '../DltUser'
|
||||
// removed in current version
|
||||
import { DltUser } from './DltUser'
|
||||
|
||||
@Entity('users', { engine: 'InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci' })
|
||||
export class User extends BaseEntity {
|
||||
@ -1 +1 @@
|
||||
export { DltTransaction } from './0088-merge_dlt_tables/DltTransaction'
|
||||
export { DltTransaction } from './0089-merge_dlt_tables/DltTransaction'
|
||||
|
||||
@ -1 +0,0 @@
|
||||
export { DltUser } from './0087-add_dlt_users_table/DltUser'
|
||||
@ -1 +1 @@
|
||||
export { Transaction } from './0088-merge_dlt_tables/Transaction'
|
||||
export { Transaction } from './0089-merge_dlt_tables/Transaction'
|
||||
|
||||
@ -1 +1 @@
|
||||
export { TransactionLink } from './0088-merge_dlt_tables/TransactionLink'
|
||||
export { TransactionLink } from './0089-merge_dlt_tables/TransactionLink'
|
||||
|
||||
@ -1 +1 @@
|
||||
export { User } from './0088-merge_dlt_tables/User'
|
||||
export { User } from './0089-merge_dlt_tables/User'
|
||||
|
||||
@ -1,23 +0,0 @@
|
||||
import { DltUser } from '../entity/DltUser'
|
||||
import { AbstractLoggingView } from './AbstractLogging.view'
|
||||
import { UserLoggingView } from './UserLogging.view'
|
||||
|
||||
export class DltUserLoggingView extends AbstractLoggingView {
|
||||
public constructor(private self: DltUser) {
|
||||
super()
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
public toJSON(): any {
|
||||
return {
|
||||
id: this.self.id,
|
||||
user: this.self.user
|
||||
? new UserLoggingView(this.self.user).toJSON()
|
||||
: { id: this.self.userId },
|
||||
messageId: this.self.messageId,
|
||||
verified: this.self.verified,
|
||||
createdAt: this.dateToString(this.self.createdAt),
|
||||
verifiedAt: this.dateToString(this.self.verifiedAt),
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user