Skip to content

Commit

Permalink
fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
williamputraintan committed Sep 19, 2023
1 parent b19076b commit 9f17571
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import { DependencyContainer } from 'tsyringe';

export const internalRoutes = async (
fastify: FastifyInstance,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
_opts: { container: DependencyContainer }
) => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
fastify.get('/hello', async (request, reply) => {
return 'Hello World!\n';
});
Expand Down
2 changes: 2 additions & 0 deletions lib/workload/stateless/metadata_manager/src/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export class App {
// inject a copy of the Elsa settings and a custom child DI container into every Fastify request
this.server.decorateRequest('container', null);

// eslint-disable-next-line @typescript-eslint/no-unused-vars
this.server.addHook('onRequest', async (req, reply) => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(req as any).container = this.dc;
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const systemAuditEventPattern = async <T>(
actionCategory: ActionType = 'E',
actionDescription: string,
transFunc: (tx: Transaction) => Promise<T>
): Promise<T | undefined> => {
): Promise<T | void> => {
const auditEventId = await startSystemAuditEvent(edgeDbClient, actionCategory, actionDescription);

try {
Expand Down Expand Up @@ -51,6 +51,7 @@ export const startSystemAuditEvent = async (
executor: Executor,
actionCategory: ActionType,
actionDescription: string,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
details: any = { errorMessage: 'Audit entry not completed' },
inProgress = true,
actionOutcome: ActionOutcomeType = 'error'
Expand Down Expand Up @@ -80,6 +81,7 @@ export const completeSystemAuditEvent = async (
auditEventId: string,
outcome: ActionOutcomeType,
endDate: Date,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
details: any
): Promise<void> => {
await updateSystemAuditEvent(executor, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
updateSpecimenRecord,
} from '../helpers/metadata/specimen-helper';
import {
LibraryType,
insertLibraryRecord,
isLibraryIdentical,
updateLibraryRecord,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { DependencyContainer } from 'tsyringe';
import e from '../../dbschema/edgeql-js';
import { Client } from 'edgedb';
import { Logger } from 'pino';
import { MetadataGoogleService } from '../service/loader-method/googleSheet';
import { METADATA_GOOGLE_OBJ } from '../../tests/service/gsheet.common';

export default async function insertScenario1(dc: DependencyContainer) {
const edgeDbClient = dc.resolve<Client>('Database');
const logger = dc.resolve<Logger>('Logger');
const gService = dc.resolve(MetadataGoogleService);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import e from '../../dbschema/edgeql-js';
import { registerTypes } from './test-dependency.common';
import { MetadataGoogleService } from '../../src/service/loader-method/googleSheet';
import {
METADATA_GOOGLE_OBJ,
METADATA_REC_1,
METADATA_REC_2,
METADATA_REC_4,
} from './gsheet.common';
import { METADATA_GOOGLE_OBJ, METADATA_REC_1, METADATA_REC_4 } from './gsheet.common';
import { Client } from 'edgedb';
import { resetDb } from './utils';

Expand Down
4 changes: 3 additions & 1 deletion lib/workload/stateless/metadata_manager/src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
// "rootDir": "./", /* Specify the root folder within your source files. */
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
"paths": {
"@orcabus/*": ["../../../../../*"]
}, /* Specify a set of entries that re-map imports to additional lookup locations. */
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"strictPropertyInitialization": false,
"typeRoots": [
"./node_modules/@types"
]
],
"skipLibCheck": true
},
"exclude": [
"node_modules",
Expand Down

0 comments on commit 9f17571

Please sign in to comment.