mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
17 lines
255 B
Ruby
17 lines
255 B
Ruby
|
|
# frozen_string_literal: true
|
||
|
|
|
||
|
|
class Imports::Destroy
|
||
|
|
attr_reader :user, :import
|
||
|
|
|
||
|
|
def initialize(user, import)
|
||
|
|
@user = user
|
||
|
|
@import = import
|
||
|
|
end
|
||
|
|
|
||
|
|
def call
|
||
|
|
@import.destroy!
|
||
|
|
|
||
|
|
BulkStatsCalculatingJob.perform_later(@user.id)
|
||
|
|
end
|
||
|
|
end
|