Stripe Pricing + Subscriptions
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import ky from 'ky';
|
||||
import { KeycloakUser } from 'src/models/main.model';
|
||||
import urlcat from 'urlcat';
|
||||
|
||||
@Injectable()
|
||||
@@ -37,7 +38,7 @@ export class AuthService {
|
||||
}
|
||||
}
|
||||
|
||||
public async getUsers() {
|
||||
public async getUsers(): Promise<KeycloakUser[]> {
|
||||
const token = await this.getAccessToken();
|
||||
const URL = `${process.env.host}${process.env.usersURL}`;
|
||||
const response = await ky
|
||||
@@ -48,7 +49,7 @@ export class AuthService {
|
||||
},
|
||||
})
|
||||
.json();
|
||||
return response;
|
||||
return response as KeycloakUser[];
|
||||
}
|
||||
public async getUser(userid: string) {
|
||||
const token = await this.getAccessToken();
|
||||
|
||||
Reference in New Issue
Block a user