【发布时间】:2019-12-19 17:42:44
【问题描述】:
我会有一个小的数据库结构:
export const ApplicationSchema = new Schema({
ownerId: String,
ownerName: String,
region: String,
fromAddress: String,
phone: String,
cameAddress: String,
status: {
type: String,
enum: ['new', 'booked', 'completed'],
default: 'new'
},
})
我需要更改“状态”,24 小时后状态应该等于“已预订”,该怎么做?
【问题讨论】:
标签: javascript arrays mongodb mongoose time