chore(deps-dev): bump prettier from 2.1.2 to 2.8.8 (#5372)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
dependabot[bot]
2023-05-22 19:14:56 -07:00
committed by GitHub
parent 3317bf2396
commit fbd16d4b9a
73 changed files with 556 additions and 645 deletions

View File

@@ -98,8 +98,9 @@ class AuthenticationProvider extends Model {
}
disable = async (options?: SaveOptions<AuthenticationProvider>) => {
const res = await (this
.constructor as typeof AuthenticationProvider).findAndCountAll({
const res = await (
this.constructor as typeof AuthenticationProvider
).findAndCountAll({
...options,
where: {
teamId: this.teamId,

View File

@@ -527,8 +527,9 @@ class Document extends ParanoidModel {
const getChildDocumentIds = async (
...parentDocumentId: string[]
): Promise<string[]> => {
const childDocuments = await (this
.constructor as typeof Document).findAll({
const childDocuments = await (
this.constructor as typeof Document
).findAll({
attributes: ["id"],
where: {
parentDocumentId,
@@ -560,8 +561,9 @@ class Document extends ParanoidModel {
// Helper to archive all child documents for a document
const archiveChildren = async (parentDocumentId: string) => {
const childDocuments = await (this
.constructor as typeof Document).findAll({
const childDocuments = await (
this.constructor as typeof Document
).findAll({
where: {
parentDocumentId,
},

View File

@@ -1,15 +1,13 @@
/* eslint-disable @typescript-eslint/ban-types */
const Deprecated = (message?: string) => (
target: Object,
propertyKey: string
) => {
if (process.env[propertyKey]) {
// eslint-disable-next-line no-console
console.warn(
`The environment variable ${propertyKey} is deprecated and will be removed in a future release. ${message}`
);
}
};
const Deprecated =
(message?: string) => (target: Object, propertyKey: string) => {
if (process.env[propertyKey]) {
// eslint-disable-next-line no-console
console.warn(
`The environment variable ${propertyKey} is deprecated and will be removed in a future release. ${message}`
);
}
};
export default Deprecated;