wip
This commit is contained in:
parent
bbff5b0096
commit
be3226ce47
5 changed files with 7 additions and 3 deletions
|
@ -34,6 +34,8 @@ module.exports = {
|
||||||
'no-constant-condition': ['warn'],
|
'no-constant-condition': ['warn'],
|
||||||
'no-empty-pattern': ['warn'],
|
'no-empty-pattern': ['warn'],
|
||||||
'no-async-promise-executor': ['off'],
|
'no-async-promise-executor': ['off'],
|
||||||
|
'no-useless-escape': ['off'],
|
||||||
|
'no-multi-spaces': ['warn'],
|
||||||
'@typescript-eslint/no-inferrable-types': ['warn'],
|
'@typescript-eslint/no-inferrable-types': ['warn'],
|
||||||
'@typescript-eslint/no-empty-function': ['off'],
|
'@typescript-eslint/no-empty-function': ['off'],
|
||||||
'@typescript-eslint/no-non-null-assertion': ['off'],
|
'@typescript-eslint/no-non-null-assertion': ['off'],
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
"watch-gulp": "gulp watch",
|
"watch-gulp": "gulp watch",
|
||||||
"clean": "gulp clean",
|
"clean": "gulp clean",
|
||||||
"cleanall": "gulp cleanall",
|
"cleanall": "gulp cleanall",
|
||||||
"lint": "eslint src/**/*.ts",
|
"lint": "eslint --quiet src/**/*.ts",
|
||||||
"cy:open": "cypress open",
|
"cy:open": "cypress open",
|
||||||
"cy:run": "cypress run",
|
"cy:run": "cypress run",
|
||||||
"e2e": "start-server-and-test start:test http://localhost cy:run",
|
"e2e": "start-server-and-test start:test http://localhost cy:run",
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import { Context } from 'cafy';
|
import { Context } from 'cafy';
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||||
export class ID<Maybe = string> extends Context<string | (Maybe extends {} ? string : Maybe)> {
|
export class ID<Maybe = string> extends Context<string | (Maybe extends {} ? string : Maybe)> {
|
||||||
public readonly name = 'ID';
|
public readonly name = 'ID';
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { stringify } from 'querystring';
|
import { stringify } from 'querystring';
|
||||||
|
|
||||||
export function query(obj: {}): string {
|
export function query(obj: Record<string, unknown>): string {
|
||||||
return stringify(Object.entries(obj)
|
return stringify(Object.entries(obj)
|
||||||
.filter(([, v]) => Array.isArray(v) ? v.length : v !== undefined)
|
.filter(([, v]) => Array.isArray(v) ? v.length : v !== undefined)
|
||||||
.reduce((a, [k, v]) => (a[k] = v, a), {} as Record<string, any>));
|
.reduce((a, [k, v]) => (a[k] = v, a), {} as Record<string, any>));
|
||||||
|
|
|
@ -7,7 +7,8 @@ import { MoreThan, Not, IsNull } from 'typeorm';
|
||||||
|
|
||||||
const logger = queueLogger.createSubLogger('clean-remote-files');
|
const logger = queueLogger.createSubLogger('clean-remote-files');
|
||||||
|
|
||||||
export default async function cleanRemoteFiles(job: Bull.Job<{}>, done: any): Promise<void> {
|
// eslint-disable-next-line import/no-default-export
|
||||||
|
export default async function cleanRemoteFiles(job: Bull.Job<Record<string, unknown>>, done: () => void): Promise<void> {
|
||||||
logger.info(`Deleting cached remote files...`);
|
logger.info(`Deleting cached remote files...`);
|
||||||
|
|
||||||
let deletedCount = 0;
|
let deletedCount = 0;
|
||||||
|
|
Loading…
Reference in a new issue