Skip to content

Commit

Permalink
add additional files
Browse files Browse the repository at this point in the history
  • Loading branch information
hams7504 committed Sep 30, 2024
1 parent 46a9648 commit 3064299
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions apps/backend/src/site/site.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Module } from "@nestjs/common";
import { SiteService } from "./site.service";
import { SiteController } from "./site.controller";

@Module({
imports: [],
providers: [SiteService],
controllers: [SiteController],
exports: [SiteService],
})

export class SiteModule{}
6 changes: 3 additions & 3 deletions apps/backend/src/site/site.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { SiteModel } from "./site.model";
export class SiteService {

/**
* Gets a company information based on that company's id.
* @param companyId
* Gets a site information based on that site's id.
* @param siteId
* @returns
*/
public async getCompany(siteId: number): Promise<SiteModel> {
public async getSite(siteId: number): Promise<SiteModel> {
try{
return await getSiteData(siteId) as Promise<SiteModel>
}
Expand Down

0 comments on commit 3064299

Please sign in to comment.