Skip to content

Commit

Permalink
Merge pull request #64 from KOSASIH/deepsource-transform-da49845c
Browse files Browse the repository at this point in the history
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
  • Loading branch information
KOSASIH authored May 10, 2024
2 parents 0989c5e + da49bfa commit 3791a17
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/models/transfer.js
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3791a17

Please sign in to comment.