mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
16 lines
248 B
Ruby
16 lines
248 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!
|
|
|
|
Stats::BulkCalculator.new(@user.id).call
|
|
end
|
|
end
|