v0.5.134: восстановление записей, кнопка удалённых, время МСК
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user