mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
replace all created to timestamps: true in db
This commit is contained in:
parent
5d65427a6e
commit
dd1f74da72
4 changed files with 11 additions and 22 deletions
|
|
@ -12,11 +12,7 @@ const promptSchema = mongoose.Schema({
|
|||
category: {
|
||||
type: String,
|
||||
},
|
||||
created: {
|
||||
type: Date,
|
||||
default: Date.now
|
||||
}
|
||||
});
|
||||
}, { timestamps: true });
|
||||
|
||||
const Prompt = mongoose.models.Prompt || mongoose.model('Prompt', promptSchema);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue