mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: remove preview action bar
This commit is contained in:
1 parent
00586b5883
commit
9c6095e852
4 files changed
+6
-3
No files matched your search
@@ -200,7 +200,7 @@ class UserModel {
|
||||
const salt = String.random();
|
||||
if (!uid) {
|
||||
const [udoc] = await coll.find({}).sort({ _id: -1 }).limit(1).toArray();
|
||||
uid = Math.max((udoc._id || 0) + 1, 2);
|
||||
uid = Math.max((udoc?._id || 0) + 1, 2);
|
||||
}
|
||||
try {
|
||||
await coll.insertOne({
|
||||
|
||||
Reference in new issue
Block a user