fix: only display exports that are your own (#197)

This commit is contained in:
TacticalCoderJay 2022-10-17 16:48:01 -07:00 committed by GitHub
parent f9e6158144
commit 3f8790ece1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,6 +124,7 @@ async function handler(req: NextApiReq, res: NextApiRes) {
const name = exp[i];
const stats = await stat(`/tmp/${name}`);
if (Number(exp[i].split('_')[2]) !== user.id) continue;
exports.push({ name, size: stats.size });
}