“我的域”功能

This commit is contained in:
undefined committed 2020-07-14 19:02:19 +08:00
1 parent d4e849a133
commit eaed0e84f5
11 files changed
+122 -27

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ export async function add(domainId: string, owner: number, name: string, bulleti
return domainId;
}
export function get(domainId: string): Promise<DomainDoc> {
export function get(domainId: string): Promise<DomainDoc | null> {
return coll.findOne({ _id: domainId });
}