Browse Source

后端计数器与前端分离

zhangweicheng 6 years ago
parent
commit
924a59251f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      modules/all_models/counter.js
  2. 1 1
      public/counter/counter.js

+ 1 - 1
modules/all_models/counter.js

@@ -7,4 +7,4 @@ var counterSchema = new Schema({
     _id: String,
     sequence_value: Number
 });
-mongoose.model("counters", counterSchema);
+mongoose.model("counters_operation", counterSchema);

+ 1 - 1
public/counter/counter.js

@@ -2,7 +2,7 @@
  * Created by Tony on 2017/3/21.
  */
 var mongoose = require('mongoose');
-var counterModel = mongoose.model("counters");
+var counterModel = mongoose.model("counters_operation");
 
 // All counter Must predefine in DB
 const COUNTER_MODULE_NAME = {