Skip to content

Commit

Permalink
Subkey regression hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
balbatross committed Aug 17, 2023
1 parent 31a53b6 commit cc2839f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ export default (prisma: PrismaClient) => {

let subkey = {};
if( args.input.subkeyId ){
subkey = { connect : {id: args.input.subkeyId } };
subkey = { subkey: { connect : {id: args.input.subkeyId } } };
}

return await prisma.deviceReport.create({
Expand Down Expand Up @@ -393,7 +393,7 @@ export default (prisma: PrismaClient) => {

let subkey = {};
if( args.input.subkeyId ){
subkey = { connect : {id: args.input.subkeyId } };
subkey = { subkey: { connect : {id: args.input.subkeyId } } };
}

return await prisma.deviceReport.update({
Expand Down

0 comments on commit cc2839f

Please sign in to comment.