Skip to content
Snippets Groups Projects
Commit df2b650a authored by Sasha Ilieva's avatar Sasha Ilieva
Browse files

Comment not used method

parent 949fe654
No related branches found
No related tags found
1 merge request!48269 implement workflow for signing already uploaded document dev
......@@ -22,31 +22,31 @@ WopiAPI.prototype.getPassports = function (resourceID, contentType) {
return axios(requestConfig);
};
WopiAPI.prototype.createDocument = async (passportUUID, path, contentType, title) => {
const authenticationPublicKey = localStorage.getItem("authenticatedIdentity");
if (
!authenticationPublicKey ||
!window.loadedIdentities[authenticationPublicKey] ||
!extendPinCodeTtl(authenticationPublicKey)
) {
return encodeResponse("400", "", "Identity not authenticated");
}
// WopiAPI.prototype.createDocument = async (passportUUID, path, contentType, title) => {
// const authenticationPublicKey = localStorage.getItem("authenticatedIdentity");
// if (
// !authenticationPublicKey ||
// !window.loadedIdentities[authenticationPublicKey] ||
// !extendPinCodeTtl(authenticationPublicKey)
// ) {
// return encodeResponse("400", "", "Identity not authenticated");
// }
const config = {
headers: {
path,
passportuuid: passportUUID,
contentType,
title
}
};
const response = await executeRestfulFunction("private", window.viamApi, window.viamApi.documentCreateDocument,
config);
// const config = {
// headers: {
// path,
// passportuuid: passportUUID,
// contentType,
// title
// }
// };
// const response = await executeRestfulFunction("private", window.viamApi, window.viamApi.documentCreateDocument,
// config);
const resourceID = response.data;
const passports = await this.getPassports(resourceID, contentType);
return axios(config);
};
// const resourceID = response.data;
// const passports = await this.getPassports(resourceID, contentType);
// return axios(config);
// };
WopiAPI.prototype.putDocument = function (resourceID, accessToken, file) {
const { publicKey, uuid, token, deviceHash } = window.viamApi.getConfig().headers;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment