update
This commit is contained in:
parent
2704a9ee9e
commit
8cfbfa85cb
@ -1,4 +1,5 @@
|
|||||||
/** @type {import("eslint").Linter.Config} */
|
/** @type {import("eslint").Linter.Config} */
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import { CreateRequestContext } from '@mikro-orm/core';
|
|
||||||
import { Injectable } from '@nestjs/common';
|
import { Injectable } from '@nestjs/common';
|
||||||
|
|
||||||
import { PostRepository } from '../repositories/post.repository';
|
import { PostRepository } from '../repositories/post.repository';
|
||||||
@ -7,11 +6,8 @@ import { PostRepository } from '../repositories/post.repository';
|
|||||||
export class PostService {
|
export class PostService {
|
||||||
constructor(protected postRepo: PostRepository) {}
|
constructor(protected postRepo: PostRepository) {}
|
||||||
|
|
||||||
@CreateRequestContext<PostService>((t) => t.postRepo)
|
// @CreateRequestContext<PostService>((t) => t.postRepo)
|
||||||
async item() {
|
async list() {
|
||||||
console.log('test');
|
return this.postRepo.findAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
@CreateRequestContext<PostService>((t) => t.postRepo)
|
|
||||||
async list() {}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user