mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
fix streamingKey
schema
This commit is contained in:
parent
39ecbf3ee3
commit
d295ddda53
@ -4,6 +4,7 @@ function getSchemas() {
|
||||
const obj = Object()
|
||||
|
||||
const _schemas = require("../schemas")
|
||||
|
||||
Object.keys(_schemas).forEach((key) => {
|
||||
obj[key] = Schema(_schemas[key])
|
||||
})
|
||||
@ -13,8 +14,5 @@ function getSchemas() {
|
||||
|
||||
const schemas = getSchemas()
|
||||
|
||||
// server
|
||||
export const Config = mongoose.model("Config", schemas.Config, "config")
|
||||
|
||||
// streaming
|
||||
export const StreamingKeys = mongoose.model("StreamingKeys", schemas.StreamingKey, "StreamingKeys")
|
||||
export const StreamingKey = mongoose.model("StreamingKey", schemas.streamingKey, "streamingKeys")
|
@ -1,5 +1,5 @@
|
||||
export default {
|
||||
userId: {
|
||||
user_id: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
|
@ -1 +1 @@
|
||||
export { default as StreamingKey } from "./StreamingKey"
|
||||
export { default as streamingKey } from "./streamingKey"
|
Loading…
x
Reference in New Issue
Block a user