feat: reset oauth ids (#20798)

This commit is contained in:
Jason Rasmussen 2025-08-08 15:42:38 -04:00 committed by GitHub
parent 9ecaa3fa9d
commit 538d5c81ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 247 additions and 6 deletions

View file

@ -0,0 +1,11 @@
import { Injectable } from '@nestjs/common';
import { AuthDto } from 'src/dtos/auth.dto';
import { BaseService } from 'src/services/base.service';
@Injectable()
export class AuthAdminService extends BaseService {
async unlinkAll(_auth: AuthDto) {
// TODO replace '' with null
await this.userRepository.updateAll({ oauthId: '' });
}
}