first commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* active 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.active.realDelete(args.id);
|
||||
} catch (error) {
|
||||
console.log('delete_active -> error', error);
|
||||
return new ApolloError('InternalServerError');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* activity_log 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.activity_log.realDelete(args.id);
|
||||
} catch (error) {
|
||||
console.log('delete_activity_log -> error', error);
|
||||
return new ApolloError('InternalServerError');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* answer 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.answer.realDelete(args.id);
|
||||
} catch (error) {
|
||||
console.log('delete_answer -> error', error);
|
||||
return new ApolloError('InternalServerError');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* credential 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.credential.realDelete(args.id);
|
||||
} catch (error) {
|
||||
console.log('delete_credential -> error', error);
|
||||
return new ApolloError('InternalServerError');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* image 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.image.realDelete(args.id);
|
||||
} catch (error) {
|
||||
console.log('delete_image -> error', error);
|
||||
return new ApolloError('InternalServerError');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* output_variable 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.output_variable.realDelete(args.id);
|
||||
} catch (error) {
|
||||
console.log('delete_output_variable -> error', error);
|
||||
return new ApolloError('InternalServerError');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* profile_header 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.profile_header.realDelete(args.id);
|
||||
} catch (error) {
|
||||
console.log('delete_profile_header -> error', error);
|
||||
return new ApolloError('InternalServerError');
|
||||
}
|
||||
}
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* quiz 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.quiz.realDelete(args.id);
|
||||
} catch (error) {
|
||||
console.log('delete_quiz -> error', error);
|
||||
return new ApolloError('InternalServerError');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* refer_log 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.refer_log.realDelete(args.id);
|
||||
} catch (error) {
|
||||
console.log('delete_refer_log -> error', error);
|
||||
return new ApolloError('InternalServerError');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* rule 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.rule.realDelete(args.id);
|
||||
} catch (error) {
|
||||
console.log('delete_rule -> error', error);
|
||||
return new ApolloError('InternalServerError');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* rules 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.rules.realDelete(args.id);
|
||||
} catch (error) {
|
||||
console.log('delete_rules -> error', error);
|
||||
return new ApolloError('InternalServerError');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* user 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.user.realDelete(args.id);
|
||||
} catch (error) {
|
||||
console.log('delete_user -> error', error);
|
||||
return new ApolloError('InternalServerError');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user