From da49bfabc41058a06e53632a57af115bbab540d1 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Fri, 10 May 2024 07:47:47 +0000 Subject: [PATCH] style: format code with Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf This commit fixes the style issues introduced in 6ec06f1 according to the output from Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf. Details: None --- src/models/transfer.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/models/transfer.js b/src/models/transfer.js index d1cf4802b..ca77421f7 100644 --- a/src/models/transfer.js +++ b/src/models/transfer.js @@ -1,12 +1,16 @@ -const mongoose = require("mongoose"); +const mongoose = require('mongoose') const transferSchema = new mongoose.Schema({ - sender_id: { type: mongoose.Schema.Types.ObjectId, ref: "User", required: true }, + sender_id: { + type: mongoose.Schema.Types.ObjectId, + ref: 'User', + required: true + }, receiver_account_id: { type: String, required: true }, amount: { type: Number, required: true }, - transaction_hash: { type: String }, -}); + transaction_hash: { type: String } +}) -const Transfer = mongoose.model("Transfer", transferSchema); +const Transfer = mongoose.model('Transfer', transferSchema) -module.exports = Transfer; +module.exports = Transfer