File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
apps/api/src/app/review/usecases/start-process Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ export class StartProcess {
44
44
} ) ;
45
45
}
46
46
47
+ await this . updateTemplateStatistics ( { uploadInfo, userEmail } ) ;
48
+
47
49
// if destination is frontend or not defined then complete the upload process
48
50
if (
49
51
! destination ||
@@ -53,16 +55,12 @@ export class StartProcess {
53
55
{ _id : _uploadId } ,
54
56
{ status : UploadStatusEnum . COMPLETED }
55
57
) ;
56
-
57
- await this . updateTemplateStatistics ( { uploadInfo, userEmail } ) ;
58
58
} else {
59
59
// if template destination has callbackUrl then start sending data to the callbackUrl
60
60
uploadInfo = await this . uploadRepository . findOneAndUpdate (
61
61
{ _id : _uploadId } ,
62
62
{ status : UploadStatusEnum . PROCESSING }
63
63
) ;
64
-
65
- await this . updateTemplateStatistics ( { uploadInfo, userEmail } ) ;
66
64
}
67
65
68
66
this . amplitudeService . recordsImported ( userEmail , {
You can’t perform that action at this time.
0 commit comments