[attachments] s/attachmentsPromise/getAttachments/