mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-17 21:25:54 +02:00
fix: get templatelist api is not working
This commit is contained in:
@@ -60,7 +60,6 @@ export default async function createDocumentwithCoordinate(request, response) {
|
||||
// console.log('fileData ', fileData);
|
||||
const protocol = customAPIurl();
|
||||
const baseUrl = new URL(process.env.SERVER_URL);
|
||||
console.log('send_email ', send_email);
|
||||
try {
|
||||
const reqToken = request.headers['x-api-token'];
|
||||
if (!reqToken) {
|
||||
|
||||
@@ -21,7 +21,11 @@ export default async function getTemplatetList(request, response) {
|
||||
const clsName = 'contracts_Template';
|
||||
const params = {
|
||||
Type: { $ne: 'Folder' },
|
||||
CreatedBy: userPtr,
|
||||
CreatedBy: {
|
||||
__type: 'Pointer',
|
||||
className: '_User',
|
||||
objectId: userPtr.id,
|
||||
},
|
||||
IsArchive: { $ne: true },
|
||||
};
|
||||
const keys = [
|
||||
|
||||
Reference in New Issue
Block a user