fixed backend deletedAt instead of disabled

This commit is contained in:
Ulf Gebhardt 2022-02-17 10:53:49 +01:00
parent 864f1b085d
commit 0683ff1999
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -367,7 +367,7 @@ export class TransactionResolver {
const recipiantUser = await userRepository.findByPubkeyHex(recipiantPublicKey)
if (!recipiantUser) {
throw new Error('Cannot find recipiant user by local send coins transaction')
} else if (recipiantUser.disabled) {
} else if (recipiantUser.deletedAt) {
throw new Error('recipiant user account is disabled')
}