Skip to content

Commit 53712ca

Browse files
committed
fix find-attachment command
1 parent 2e31124 commit 53712ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/find-attachment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const config = require('../config.json');
44

55
module.exports = function(id, name) {
66
return new Promise(function(resolve, reject) {
7-
exec(`find ${config.attachmentsDir}/*/*/${name}/${id}`, function(err, stdout, stderr) {
7+
exec(`find ${config.attachmentsDir}/*/*/${name}/*`, function(err, stdout, stderr) {
88
if (err) {
99
console.error(stderr);
1010
return reject(err);

0 commit comments

Comments
 (0)