mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-13 17:27:37 -05:00
Basic Podcast is working
This commit is contained in:
@@ -26,5 +26,19 @@ var callSchema = mongoose.Schema({
|
||||
});
|
||||
|
||||
|
||||
var frozenCallSchema = mongoose.Schema();
|
||||
frozenCallSchema.add(callSchema).add({
|
||||
systemName: String,
|
||||
systemDescription: String,
|
||||
talkgroupDescription: String,
|
||||
talkgroupAlpha: String,
|
||||
|
||||
});
|
||||
|
||||
|
||||
exports.frozenCallSchema = frozenCallSchema;
|
||||
exports.frozenCallModel = mongoose.model('FrozenCall', frozenCallSchema);
|
||||
|
||||
|
||||
exports.callSchema = callSchema;
|
||||
exports.callModel = mongoose.model('Call', callSchema);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
var mongoose = require('mongoose');
|
||||
var {callSchema} = require('./call');
|
||||
console.log(callSchema)
|
||||
var {frozenCallSchema} = require('./call');
|
||||
|
||||
|
||||
var eventSchema = mongoose.Schema({
|
||||
title: String,
|
||||
@@ -10,7 +10,7 @@ var eventSchema = mongoose.Schema({
|
||||
endTime: Date,
|
||||
downloadUrl: String,
|
||||
shortNames: [String],
|
||||
calls: [callSchema],
|
||||
calls: [frozenCallSchema],
|
||||
numCalls: Number
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user