Skip to content

Instantly share code, notes, and snippets.

public async deleteCompanyDocument(companyId: string): Promise<any> {
const data = {
index: INDEX,
type: TYPE,
id: companyId.toString(),
};
return await this.deleteIndex(data);
}
var a = {};
(function b(a) {
a.a = 10;
a = null;
})(a);
console.log(a);
-----------------------------
SELECT Products.Name, Categories.Name
FROM Products
LEFT JOIN ProductCategories ON Products.Id = ProductCategories.ProductId
LEFT JOIN Categories ON ProductCategories.CategoryId = Categories.Id
class Person::Car < ActiveRecord::Base
include ParserServiceSeparable
has_paper_trail
acts_as_paranoid
before_validation :set_ownership
belongs_to :person
has_many :vehicle_ownerships, foreign_key: :vin, primary_key: :vin
has_many :road_accidents, foreign_key: :vin, primary_key: :vin
has_many :taxis, foreign_key: :gosnumber, primary_key: :number