quiz init commit

This commit is contained in:
modeht
2022-04-11 06:32:47 +02:00
commit 3e49e31399
445 changed files with 109700 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
"use strict";
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
/**
* question Resolve Delete
* @copyright 2021 Manaknightdigital Inc.
* @link https://manaknightdigital.com
* @license Proprietary Software licensing
* @author Ryan Wong
*
*/
const { ApolloError } = require('apollo-server-express');
module.exports = async (parent, args, {db}, info) => {
//Check Auth if user allowed
try {
return await db.question.realDelete(args.id);
} catch (error) {
console.log('delete_question -> error', error);
return new ApolloError('InternalServerError');
}
}