(did: ObjectId, title: string, content: string)
| 53 | } |
| 54 | |
| 55 | static edit(did: ObjectId, title: string, content: string): Promise<BlogDoc> { |
| 56 | const payload = { title, content }; |
| 57 | return DocumentModel.set('system', TYPE_BLOG, did, payload); |
| 58 | } |
| 59 | |
| 60 | static inc(did: ObjectId, key: NumberKeys<BlogDoc>, value: number): Promise<BlogDoc | null> { |
| 61 | return DocumentModel.inc('system', TYPE_BLOG, did, key, value); |
no test coverage detected