add IrcCloud log importer.
This commit is contained in:
@@ -55,7 +55,12 @@ func (r *mutationResolver) ImportLog(ctx context.Context, input graphcore.LogImp
|
||||
tz = parsedTZ
|
||||
}
|
||||
|
||||
return r.s.Logs.Import(ctx, input.Importer, date, tz, input.ChannelName, input.Data)
|
||||
sessionThreshold := time.Hour * 12
|
||||
if input.SessionThresholdMs != nil {
|
||||
sessionThreshold = time.Duration(*input.SessionThresholdMs) * time.Millisecond
|
||||
}
|
||||
|
||||
return r.s.Logs.Import(ctx, input.Importer, date, tz, input.ChannelName, sessionThreshold, input.Data)
|
||||
}
|
||||
|
||||
func (r *mutationResolver) SplitLog(ctx context.Context, input graphcore.LogSplitInput) (*models.Log, error) {
|
||||
|
||||
Reference in New Issue
Block a user