mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 17:46:28 +08:00
template into ui
This commit is contained in:
1 parent
43ee86d34b
commit
8bb389eedd
13 files changed
+70
-206
No files matched your search
+2
-2
@@ -199,7 +199,7 @@ export async function create(
|
||||
return uid;
|
||||
}
|
||||
|
||||
export function getMulti(params) {
|
||||
export function getMulti(params: any) {
|
||||
return coll.find(params);
|
||||
}
|
||||
|
||||
@@ -210,7 +210,7 @@ export async function getPrefixList(prefix: string, limit = 50) {
|
||||
return udocs;
|
||||
}
|
||||
|
||||
export async function setPriv(uid: number, priv: number) {
|
||||
export async function setPriv(uid: number, priv: number): Promise<Udoc | null> {
|
||||
const udoc = await coll.findOneAndUpdate(
|
||||
{ _id: uid },
|
||||
{ $set: { priv } },
|
||||
|
||||
Reference in new issue
Block a user