mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
complete item editing
This commit is contained in:
parent
7513f79b93
commit
0cbbc0ce8a
12 changed files with 94 additions and 34 deletions
|
@ -12,7 +12,7 @@ module.exports = async (req, res) => {
|
|||
if (!exists) return res.send({ success: false, mode: 'not_exists' });
|
||||
if (exists && exists.owner._id !== id) return res.send({ success: false, mode: 'not_yours' });
|
||||
|
||||
exists.delete();
|
||||
await exists.set({ is_deleted: true }).save();
|
||||
|
||||
return res.send({ success: true, address });
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue