Refactor indentation and import statements.
Aligned the indentation to use tabs consistently and updated import statements to use double quotes for consistency throughout the file. These changes improve code readability and maintain uniform style.
This commit is contained in:
parent
07d65484c3
commit
66ca040807
@ -1,8 +1,7 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { DbService } from 'apps/backend/src/app/db/db.service';
|
||||
import { FilesGroupTable } from 'apps/backend/src/app/db/schema';
|
||||
import { ilike } from 'drizzle-orm';
|
||||
|
||||
import { Injectable } from "@nestjs/common";
|
||||
import { DbService } from "apps/backend/src/app/db/db.service";
|
||||
import { FilesGroupTable } from "apps/backend/src/app/db/schema";
|
||||
import { ilike } from "drizzle-orm";
|
||||
|
||||
@Injectable()
|
||||
export class GroupsService {
|
||||
@ -10,7 +9,8 @@ export class GroupsService {
|
||||
|
||||
//TODO a method to fetch groups in the database by a specific search with limit, offset and a search field (can be blank)
|
||||
async getGroupsByName(limit: number, offset: number, search: string) {
|
||||
return await this.database.use()
|
||||
return await this.database
|
||||
.use()
|
||||
.select()
|
||||
.from(FilesGroupTable)
|
||||
.where(ilike(FilesGroupTable.groupName, search))
|
||||
@ -22,7 +22,6 @@ export class GroupsService {
|
||||
|
||||
//TODO The method to create a group
|
||||
|
||||
|
||||
//TODO a method to delete a group and place the associated file at a null group reference
|
||||
|
||||
//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