File tree Expand file tree Collapse file tree 1 file changed +18
-19
lines changed Expand file tree Collapse file tree 1 file changed +18
-19
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,18 @@ const candosSchema = {
51
51
const saveRemoteImages = require ( '../../hooks/save-remote-images' ) ;
52
52
const createDefaultAvatar = require ( '../../hooks/create-default-avatar' ) ;
53
53
54
+ const thumbnailOptions = {
55
+ avatar : {
56
+ small : '72x72/smart' ,
57
+ medium : '120x120/smart' ,
58
+ large : '240x240/smart'
59
+ } ,
60
+ coverImg : {
61
+ cover : '1102x312/smart' ,
62
+ coverPlaceholder : '243x100/smart/filters:blur(30)'
63
+ }
64
+ } ;
65
+
54
66
module . exports = {
55
67
before : {
56
68
all : [ ] ,
@@ -116,27 +128,11 @@ module.exports = {
116
128
cleanupBasicData
117
129
] ,
118
130
find : [
119
- thumbnails ( {
120
- avatar : {
121
- small : '72x72/smart' ,
122
- medium : '120x120/smart' ,
123
- large : '240x240/smart'
124
- }
125
- } ) ,
131
+ thumbnails ( thumbnailOptions ) ,
126
132
cleanupPersonalData
127
133
] ,
128
134
get : [
129
- thumbnails ( {
130
- avatar : {
131
- small : '72x72/smart' ,
132
- medium : '120x120/smart' ,
133
- large : '240x240/smart'
134
- } ,
135
- coverImg : {
136
- cover : '1102x312/smart' ,
137
- coverPlaceholder : '243x100/smart/filters:blur(30)'
138
- }
139
- } ) ,
135
+ thumbnails ( thumbnailOptions ) ,
140
136
cleanupPersonalData
141
137
] ,
142
138
create : [
@@ -146,9 +142,12 @@ module.exports = {
146
142
when ( isProvider ( 'external' ) ,
147
143
removeVerification ( )
148
144
) ,
145
+ thumbnails ( thumbnailOptions ) ,
149
146
inviteCode . after
150
147
] ,
151
- update : [ ] ,
148
+ update : [
149
+ thumbnails ( thumbnailOptions )
150
+ ] ,
152
151
patch : [ ] ,
153
152
remove : [ ]
154
153
} ,
You can’t perform that action at this time.
0 commit comments