mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-08-18 00:17:14 +02:00
fix company context not used in email attachments view
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
@@ -1616,10 +1616,12 @@ export class API {
|
||||
* Get a email by ID.
|
||||
*
|
||||
* @param {string} id
|
||||
* @param {string|null} [companyID]
|
||||
* @returns {Promise<ApiResponse>}
|
||||
*/
|
||||
getByID: async (id) => {
|
||||
return await getJSON(this.getPath(`/email/${id}`));
|
||||
getByID: async (id, companyID = null) => {
|
||||
const companyQuery = companyID ? `?${this.companyQuery(companyID)}` : '';
|
||||
return await getJSON(this.getPath(`/email/${id}${companyQuery}`));
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user