Add constructor to MachinesService with DbService injection.
This change introduces a constructor to the MachinesService class, ensuring the DbService is properly injected. This setup prepares for future methods dealing with machine data operations, such as fetching, creating, and deleting machines, as well as retrieving associated files.
This commit is contained in:
parent
da5c15e5b9
commit
e03d16bdb4
@ -1,4 +1,15 @@
|
||||
import { Injectable } from "@nestjs/common";
|
||||
import { DbService } from 'apps/backend/src/app/db/db.service';
|
||||
|
||||
@Injectable()
|
||||
export class MachinesService {}
|
||||
export class MachinesService {
|
||||
constructor(private readonly database: DbService) {}
|
||||
|
||||
//TODO a method to fetch machines in the database by a specific search with limit, offset and a search field (can be blank)
|
||||
|
||||
//TODO The method to create a machine
|
||||
|
||||
//TODO a method to delete a machine and delete the associated FilesTypeForMachine row
|
||||
|
||||
//TODO a method to get the files of a group in the database by a specific search with limit, offset and a search field (can be blank)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user