mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
16 lines
255 B
Ruby
16 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
|