forked from woem.men/forkey
fix backend linting errors
This commit is contained in:
parent
f531171c59
commit
56dcf2c956
3 changed files with 6 additions and 8 deletions
|
@ -244,7 +244,7 @@ export class SignupApiService {
|
|||
} else {
|
||||
try {
|
||||
const { account, secret } = await this.signupService.signup({
|
||||
username, password, host, reason
|
||||
username, password, host, reason,
|
||||
});
|
||||
|
||||
if (instance.approvalRequiredForSignup) {
|
||||
|
|
|
@ -63,12 +63,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
|
||||
await this.usedUsernamesRepository.delete({ username: user.username });
|
||||
|
||||
|
||||
//Actually delete it since the last function doesnt actually delete the account
|
||||
//Note: Before approval these accounts wont federate so this is totally fine.
|
||||
await this.usersRepository.delete(user.id);
|
||||
|
||||
|
||||
this.moderationLogService.log(me, 'decline', {
|
||||
userId: user.id,
|
||||
userUsername: user.username,
|
||||
|
|
Loading…
Reference in a new issue