ui: remove preview action bar

This commit is contained in:
undefined committed 2021-04-29 12:26:18 +08:00
1 parent 00586b5883
commit 9c6095e852
4 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -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({