Update dependencies

This commit is contained in:
Isaac 2023-01-02 12:21:37 +00:00
parent f050d5c41f
commit 7c011fbf9d
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33
2 changed files with 11 additions and 11 deletions

View File

@ -39,19 +39,19 @@
"@eartharoid/dtf": "^2.0.1",
"@eartharoid/i18n": "^1.2.1",
"@fastify/cookie": "^6.0.0",
"@fastify/cors": "^8.1.1",
"@fastify/http-proxy": "^8.2.3",
"@fastify/cors": "^8.2.0",
"@fastify/http-proxy": "^8.4.0",
"@fastify/jwt": "^5.0.1",
"@fastify/oauth2": "^5.1.0",
"@prisma/client": "^4.5.0",
"@prisma/client": "^4.8.0",
"cryptr": "^6.0.3",
"discord.js": "^14.6.0",
"discord.js": "^14.7.1",
"dotenv": "^16.0.3",
"express": "^4.18.2",
"fastify": "^4.9.2",
"fastify": "^4.11.0",
"figlet": "^1.5.2",
"fs-extra": "^10.1.0",
"keyv": "^4.5.0",
"keyv": "^4.5.2",
"leeks.js": "^0.2.4",
"leekslazylogger": "^5.0.0",
"ms": "^2.1.3",
@ -60,14 +60,14 @@
"node-emoji": "^1.11.0",
"object-diffy": "^1.0.4",
"pad": "^3.2.0",
"prisma": "^4.5.0",
"prisma": "^4.8.0",
"semver": "^7.3.8",
"terminal-link": "^2.1.1",
"yaml": "^1.10.2"
},
"devDependencies": {
"all-contributors-cli": "^6.24.0",
"eslint": "^8.26.0",
"eslint": "^8.31.0",
"eslint-plugin-unused-imports": "^2.0.0",
"nodemon": "^2.0.20"
},

View File

@ -38,9 +38,9 @@ const traverse = (obj, action) => {
};
module.exports = async (params, next) => {
if (params.args.create) params.args.create = traverse(params.args.create, 'SERIALISE');
if (params.args.data) params.args.data = traverse(params.args.data, 'SERIALISE');
if (params.args.update) params.args.update = traverse(params.args.update, 'SERIALISE');
if (params.args?.create) params.args.create = traverse(params.args.create, 'SERIALISE');
if (params.args?.data) params.args.data = traverse(params.args.data, 'SERIALISE');
if (params.args?.update) params.args.update = traverse(params.args.update, 'SERIALISE');
let result = await next(params);
if (result) result = traverse(result, 'PARSE');
return result;