mirror of
https://github.com/immich-app/immich.git
synced 2025-12-26 09:14:58 +03:00
12 lines
347 B
TypeScript
12 lines
347 B
TypeScript
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: '' });
|
|
}
|
|
}
|