This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async deleteCompanyDocument(companyId: string): Promise<any> { | |
const data = { | |
index: INDEX, | |
type: TYPE, | |
id: companyId.toString(), | |
}; | |
return await this.deleteIndex(data); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = {}; | |
(function b(a) { | |
a.a = 10; | |
a = null; | |
})(a); | |
console.log(a); | |
----------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT Products.Name, Categories.Name | |
FROM Products | |
LEFT JOIN ProductCategories ON Products.Id = ProductCategories.ProductId | |
LEFT JOIN Categories ON ProductCategories.CategoryId = Categories.Id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer