v0.5.134: восстановление записей, кнопка удалённых, время МСК

This commit is contained in:
2026-06-16 04:39:21 +04:00
parent f0743c6bfe
commit 86a39c7881
8 changed files with 86 additions and 10 deletions
+8 -1
View File
@@ -74,4 +74,11 @@ async function remove(entryId, clientId, email, impBy) {
return q.deleteEntry(entryId, co.id, email, impBy);
}
module.exports = { list, add, edit, remove };
// ── restore(entryId, clientId, email, impBy) → void ─────────────────────────
// Восстановление удалённой записи.
async function restore(entryId, clientId, email, impBy) {
const co = await resolve(clientId);
return q.restoreEntry(entryId, co.id, email, impBy);
}
module.exports = { list, add, edit, remove, restore };