theflametrooper 8 лет назад
Родитель
Сommit
5753d3eee0
4 измененных файлов с 8 добавлено и 8 удалено
  1. 2 2
      backend/schemas/queueSong.js
  2. 2 2
      backend/schemas/song.js
  3. 2 2
      backend/schemas/station.js
  4. 2 2
      backend/schemas/user.js

+ 2 - 2
backend/schemas/queueSong.js

@@ -1,8 +1,8 @@
 module.exports = mongoose => {
 
-	var Schema = mongoose.Schema;
+	const Schema = mongoose.Schema;
 
-	var queueSongSchema = new Schema({
+	const queueSongSchema = new Schema({
 		_id: { type: String, length: 11, index: true, unique: true, required: true },
 		title: { type: String, required: true },
 		artists: [{ type: String, min: 1 }],

+ 2 - 2
backend/schemas/song.js

@@ -1,8 +1,8 @@
 module.exports = mongoose => {
 
-	var Schema = mongoose.Schema;
+	const Schema = mongoose.Schema;
 
-	var songSchema = new Schema({
+	const songSchema = new Schema({
 		_id: { type: String, length: 11, index: true, unique: true, required: true },
 		title: { type: String, required: true },
 		artists: [{ type: String, min: 1 }],

+ 2 - 2
backend/schemas/station.js

@@ -1,8 +1,8 @@
 module.exports = mongoose => {
 
-	var Schema = mongoose.Schema;
+	const Schema = mongoose.Schema;
 
-	var stationSchema = new Schema({
+	const stationSchema = new Schema({
 		_id: { type: String, lowercase: true, max: 16, min: 2, index: true, unique: true, required: true },
 		type: { type: String, enum: ["official", "community"], required: true},
 		displayName: { type: String, min: 2, max: 32, required: true },

+ 2 - 2
backend/schemas/user.js

@@ -1,8 +1,8 @@
 module.exports = mongoose => {
 
-    var Schema = mongoose.Schema;
+    const Schema = mongoose.Schema;
 
-    var userSchema = new Schema({
+    const userSchema = new Schema({
         username: String,
         email: {
             verified: { type: Boolean, default: false },