Skip to content

Commit

Permalink
Resolve #26: SQL Error When Deleting PersonalBest
Browse files Browse the repository at this point in the history
  • Loading branch information
big213 committed Oct 14, 2021
1 parent 02ed4d1 commit a6b8361
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion backend/functions/src/schema/models/personalBest/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,15 @@ export class PersonalBestService extends PaginatedService {
const validatedArgs = <any>args;
// confirm existence of item and get ID
const item = await this.lookupRecord(
["id", "pbClass", "setSize", "createdBy", "isCurrent", "happenedOn"],
[
"id",
"pbClass",
"setSize",
"createdBy",
"isCurrent",
"happenedOn",
"event",
],
validatedArgs,
fieldPath
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export default {
})
this.$emit('handleSubmit', data)
this.$emit('close')
} catch (err) {
handleError(this, err)
}
Expand Down

0 comments on commit a6b8361

Please sign in to comment.