Skip to content

Commit 265bad6

Browse files
committed
merge fix
1 parent 6878930 commit 265bad6

31 files changed

Lines changed: 3632 additions & 4511 deletions

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ npm-debug.log
3333
yarn-error.log
3434
testem.log
3535
/typings
36-
.nx
3736

3837
# System Files
3938
.DS_Store

apps/backend/src/auth/auth.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class AuthController {
3434
signUpDto.firstName,
3535
signUpDto.lastName,
3636
signUpDto.phone,
37-
Role.VOLUNTEER,
37+
Role.STANDARD_VOLUNTEER,
3838
);
3939

4040
return user;

apps/backend/src/auth/auth.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class AuthService {
6060

6161
async signup(
6262
{ firstName, lastName, email, password }: SignUpDto,
63-
role: Role = Role.VOLUNTEER,
63+
role: Role = Role.STANDARD_VOLUNTEER,
6464
): Promise<boolean> {
6565
// Needs error handling
6666
const signUpCommand = new SignUpCommand({

apps/backend/src/config/typeorm.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import { RemoveOrdersDonationId1761500262238 } from '../migrations/1761500262238
2323
import { AddVolunteerPantryUniqueConstraint1760033134668 } from '../migrations/1760033134668-AddVolunteerPantryUniqueConstraint';
2424
import { AllergyFriendlyToBoolType1763963056712 } from '../migrations/1763963056712-AllergyFriendlyToBoolType';
2525
import { UpdatePantryUserFieldsFixed1764350314832 } from '../migrations/1764350314832-UpdatePantryUserFieldsFixed';
26-
import { RemoveMultipleVolunteerTypes1764811878152 } from '../migrations/1764811878152-RemoveMultipleVolunteerTypes';
2726
import { RemoveUnusedStatuses1764816885341 } from '../migrations/1764816885341-RemoveUnusedStatuses';
2827
import { UpdatePantryFields1763762628431 } from '../migrations/1763762628431-UpdatePantryFields';
2928

@@ -63,7 +62,6 @@ const config = {
6362
AddVolunteerPantryUniqueConstraint1760033134668,
6463
AllergyFriendlyToBoolType1763963056712,
6564
UpdatePantryUserFieldsFixed1764350314832,
66-
RemoveMultipleVolunteerTypes1764811878152,
6765
RemoveUnusedStatuses1764816885341,
6866
],
6967
};

apps/backend/src/foodRequests/request.controller.spec.ts

Lines changed: 0 additions & 322 deletions
This file was deleted.

apps/backend/src/foodRequests/request.controller.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { OrderStatus } from '../orders/types';
2222

2323
@Controller('requests')
2424
// @UseInterceptors()
25-
export class RequestsController {
25+
export class FoodRequestsController {
2626
constructor(
2727
private requestsService: RequestsService,
2828
private awsS3Service: AWSS3Service,
@@ -43,6 +43,14 @@ export class RequestsController {
4343
return this.requestsService.find(pantryId);
4444
}
4545

46+
@Get('get-order/:requestId')
47+
async getOrderByRequestId(
48+
@Param('requestId', ParseIntPipe) requestId: number,
49+
): Promise<Order> {
50+
const request = await this.requestsService.findOne(requestId);
51+
return request.order;
52+
}
53+
4654
@Post('/create')
4755
@ApiBody({
4856
description: 'Details for creating a food request',

0 commit comments

Comments
 (0)