chore: added changes to creating a history in resolvers and service method

This commit is contained in:
ankitsridhar16
2023-01-23 22:51:37 +05:30
parent a5a14f6c76
commit ebf236b387
3 changed files with 15 additions and 15 deletions

View File

@@ -22,7 +22,7 @@ export class UserHistoryResolver {
description: 'Adds a new REST/GQL request to user history',
})
@UseGuards(GqlAuthGuard)
async addRequestToHistory(
async createUserHistory(
@GqlUser() user: User,
@Args({
name: 'reqData',
@@ -40,7 +40,7 @@ export class UserHistoryResolver {
})
reqType: string,
): Promise<UserHistory> {
const createdHistory = await this.userHistoryService.addRequestToHistory(
const createdHistory = await this.userHistoryService.createUserHistory(
user.uid,
reqData,
resMetadata,