rename all variants of naming that hold an AyaType value to "aType" (parameter) / "AType" (not parameter) everywhere front and back; "ayType", "objectType", "oType" all are used in various areas
This commit is contained in:
@@ -556,7 +556,7 @@ export default {
|
||||
},
|
||||
///////////////////////////////////
|
||||
// POST FILE ATTACHMENTS
|
||||
// @param {ayaId:objectid, ayaType:objectType, files:[array of files]}
|
||||
// @param {ayaId:objectid, ayaType:aType, files:[array of files]}
|
||||
//
|
||||
async uploadAttachment(at) {
|
||||
let that = this;
|
||||
@@ -567,7 +567,7 @@ export default {
|
||||
data.append(files[i].name, files[i]);
|
||||
}
|
||||
|
||||
data.append("AttachToObjectType", at.ayaType);
|
||||
data.append("AttachToAType", at.ayaType);
|
||||
data.append("AttachToObjectId", at.ayaId);
|
||||
data.append("Notes", at.notes);
|
||||
data.append("FileData", at.fileData);
|
||||
@@ -606,7 +606,7 @@ export default {
|
||||
data.append(files[i].name, files[i]);
|
||||
}
|
||||
if (at.ayaType) {
|
||||
data.append("ObjectType", at.ayaType);
|
||||
data.append("AType", at.ayaType);
|
||||
}
|
||||
if (at.ayaId) {
|
||||
data.append("ObjectId", at.ayaId);
|
||||
|
||||
Reference in New Issue
Block a user