remove get function
This commit is contained in:
parent
008b8f2360
commit
25a149c4c9
|
@ -47,7 +47,3 @@ const deviceSchema = mongoose.Schema(device, {
|
||||||
const Device = mongoose.model('device', deviceSchema);
|
const Device = mongoose.model('device', deviceSchema);
|
||||||
|
|
||||||
module.exports = Device;
|
module.exports = Device;
|
||||||
|
|
||||||
module.exports.get = (callback, limit) => {
|
|
||||||
Device.find(callback).limit(limit);
|
|
||||||
};
|
|
||||||
|
|
Loading…
Reference in New Issue