Fix imports and add missing trailing comma
Standardized import quotes across files and added a missing trailing comma in storage.module.ts. Corrected import order in files.module.ts and machines.module.ts for better readability.
This commit is contained in:
parent
30026df2d0
commit
9d28d4f82a
@ -64,7 +64,6 @@ export class FilesController {
|
||||
|
||||
await this.filesService.save(fileBuffer, Params);
|
||||
|
||||
|
||||
return { message: "Fichier sauvegardé avec succès" };
|
||||
});
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
import { Module } from "@nestjs/common";
|
||||
import { CredentialsModule } from "../credentials/credentials.module";
|
||||
import { DbModule } from "../db/db.module";
|
||||
import { StorageModule } from "../storage/storage.module";
|
||||
import { FilesController } from "./files.controller";
|
||||
import { FilesService } from "./files.service";
|
||||
import { CredentialsModule } from '../credentials/credentials.module';
|
||||
|
||||
@Module({
|
||||
imports: [StorageModule, DbModule, CredentialsModule],
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { Module } from "@nestjs/common";
|
||||
import { DbModule } from "apps/backend/src/app/db/db.module";
|
||||
import { MachinesController } from "apps/backend/src/app/machines/machines.controller";
|
||||
import { MachinesService } from "apps/backend/src/app/machines/machines.service";
|
||||
import { DbModule } from 'apps/backend/src/app/db/db.module';
|
||||
|
||||
@Module({
|
||||
imports: [DbModule],
|
||||
|
@ -5,6 +5,6 @@ import { StorageService } from "../storage/storage.service";
|
||||
@Module({
|
||||
imports: [DbModule],
|
||||
providers: [StorageService],
|
||||
exports: [StorageService]
|
||||
exports: [StorageService],
|
||||
})
|
||||
export class StorageModule {}
|
||||
|
@ -16,7 +16,7 @@ import {
|
||||
} from "apps/backend/src/app/db/schema";
|
||||
import { IFileInformation } from "apps/backend/src/app/storage/storage.types";
|
||||
import { eq } from "drizzle-orm";
|
||||
import { filetypeinfo } from 'magic-bytes.js';
|
||||
import { filetypeinfo } from "magic-bytes.js";
|
||||
|
||||
@Injectable()
|
||||
export class StorageService {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { StreamableFile } from "@nestjs/common";
|
||||
import { GuessedFile } from 'magic-bytes.js/dist/model/tree';
|
||||
import { GuessedFile } from "magic-bytes.js/dist/model/tree";
|
||||
|
||||
export interface IFileInformation {
|
||||
fileDisplayName: string;
|
||||
|
Loading…
x
Reference in New Issue
Block a user