enum use on community user initialization

This commit is contained in:
joseji 2022-11-23 11:32:27 +01:00
parent e55f516c51
commit 60e3f62832

View File

@ -1,5 +1,6 @@
/* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable @typescript-eslint/no-unused-vars */
import { PasswordEncryptionType } from '@/graphql/enum/PasswordEncryptionType'
import { SaveOptions, RemoveOptions } from '@dbTools/typeorm' import { SaveOptions, RemoveOptions } from '@dbTools/typeorm'
import { User as dbUser } from '@entity/User' import { User as dbUser } from '@entity/User'
import { UserContact } from '@entity/UserContact' import { UserContact } from '@entity/UserContact'
@ -27,7 +28,7 @@ const communityDbUser: dbUser = {
publisherId: 0, publisherId: 0,
passphrase: '', passphrase: '',
// default password encryption type // default password encryption type
passwordEncryptionType: 0, passwordEncryptionType: PasswordEncryptionType.NO_PASSWORD,
hasId: function (): boolean { hasId: function (): boolean {
throw new Error('Function not implemented.') throw new Error('Function not implemented.')
}, },