fix: Error in shares.info endpoint when requesting share record for deleted document
This commit is contained in:
@ -29,7 +29,7 @@ router.post("shares.info", auth(), async (ctx) => {
|
||||
revokedAt: { [Op.eq]: null },
|
||||
},
|
||||
});
|
||||
if (!share) {
|
||||
if (!share || !share.document) {
|
||||
throw new NotFoundError();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user