This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree 2 files changed +2
-18
lines changed
2 files changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -20,17 +20,11 @@ paths:
20
20
get :
21
21
summary : " Get all templates"
22
22
description : |
23
- "Return all templates. You can specify the date from and name when you would like the records." "
23
+ "Return all templates. You can filter by the name "
24
24
tags :
25
25
- " templates"
26
26
operationId : " getTemplates"
27
27
parameters :
28
- - name : " from"
29
- in : " query"
30
- description : " The date from when you would like the uploads (inclusive)"
31
- required : false
32
- type : " string"
33
- default : " today's value"
34
28
- name : " name"
35
29
in : " query"
36
30
description : " The name of templates"
@@ -64,13 +58,7 @@ paths:
64
58
- " templates"
65
59
operationId : " headTemplates"
66
60
parameters :
67
- - name : " from"
68
- in : " query"
69
- description : " The date from when you would like the uploads (inclusive)"
70
- required : false
71
- type : " string"
72
- default : " today's value"
73
- - name : " organizationId"
61
+ - name : " name"
74
62
in : " query"
75
63
description : " The name of templates"
76
64
required : false
Original file line number Diff line number Diff line change @@ -64,10 +64,6 @@ uploadEntity.schema = {
64
64
*/
65
65
async function getEntities ( query ) {
66
66
const filter = { }
67
- if ( ! query . from ) {
68
- query . from = ( new Date ( ( new Date ( ) ) . setDate ( ( new Date ( ) ) . getDate ( ) - 1 ) ) . toISOString ( ) ) // 24 hours ago
69
- }
70
- filter . created = { ge : query . from }
71
67
if ( query . name ) {
72
68
filter . name = { contains : query . name }
73
69
}
You can’t perform that action at this time.
0 commit comments