From c14d0a89a2b9a2e9d8f2c5f4517bc35169f2cf86 Mon Sep 17 00:00:00 2001 From: Joseph Ditton Date: Fri, 3 Dec 2021 18:40:37 -0700 Subject: [PATCH] remove unused names --- bin/setup_new_project.sh | 3 +++ server/controllers/users.controller.ts | 2 +- server/providers/services/roles.service.ts | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/setup_new_project.sh b/bin/setup_new_project.sh index bcffc7d..9255c5e 100644 --- a/bin/setup_new_project.sh +++ b/bin/setup_new_project.sh @@ -8,8 +8,11 @@ echo "Where is your git repo? (eg git@github.com:dittonjs/NestStarterApp.git)" read reponame +# replace the title of the README with new app name sed -i "s/USU CS4610 Nest Starter App/$appname/" README.md +git add . +git commit -m "setup new project '$appname'" git remote rename origin upstream git remote add origin $reponame git branch -M main diff --git a/server/controllers/users.controller.ts b/server/controllers/users.controller.ts index b06a8fd..652b5b6 100644 --- a/server/controllers/users.controller.ts +++ b/server/controllers/users.controller.ts @@ -1,4 +1,4 @@ -import { Body, Controller, Get, HttpException, HttpStatus, Post, Res, UseGuards } from '@nestjs/common'; +import { Body, Controller, Get, HttpException, HttpStatus, Post, Res } from '@nestjs/common'; import * as bcrypt from 'bcrypt'; import { Response } from 'express'; import { JwtBody } from 'server/decorators/jwt_body.decorator'; diff --git a/server/providers/services/roles.service.ts b/server/providers/services/roles.service.ts index 7cd17ef..c04ea98 100644 --- a/server/providers/services/roles.service.ts +++ b/server/providers/services/roles.service.ts @@ -1,7 +1,6 @@ import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { In, Repository } from 'typeorm'; -import * as bcrypt from 'bcrypt'; import { Role, RoleKey } from 'server/entities/role.entity'; @Injectable()