From 7c011fbf9d4bdfef61c796ea472489a8e853fcbd Mon Sep 17 00:00:00 2001 From: Isaac Date: Mon, 2 Jan 2023 12:21:37 +0000 Subject: [PATCH] Update dependencies --- package.json | 16 ++++++++-------- src/lib/middleware/prisma-sqlite.js | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index d214d99..7d82f2e 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/src/lib/middleware/prisma-sqlite.js b/src/lib/middleware/prisma-sqlite.js index 776b647..d858a4c 100644 --- a/src/lib/middleware/prisma-sqlite.js +++ b/src/lib/middleware/prisma-sqlite.js @@ -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;