* chore(deps): update dependency @swc/core to ^1.4.2 * ci: fix typecheck issue --------- Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com> Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
16 lines
408 B
TypeScript
16 lines
408 B
TypeScript
import { Inject, Injectable } from "@nestjs/common";
|
|
|
|
import { DatabaseService } from "./db/database.service";
|
|
|
|
@Injectable()
|
|
export class AppService {
|
|
constructor(
|
|
@Inject(DatabaseService) private readonly databaseService: DatabaseService,
|
|
) {}
|
|
|
|
async getHello(): Promise<string> {
|
|
const users = await this.databaseService.get().query.users.findMany();
|
|
return JSON.stringify(users);
|
|
}
|
|
}
|