fix: move google credential to folder
continuous-integration/drone/tag Build is passing Details

pull/58/head devel_20.1.13
shancheas 2024-08-07 12:30:55 +07:00
parent dbdc7a0203
commit e4a631b929
2 changed files with 1 additions and 6 deletions

View File

@ -1,6 +1,5 @@
import { google } from 'googleapis'; import { google } from 'googleapis';
import * as fs from 'fs'; import * as fs from 'fs';
import * as path from 'path';
import { TransactionEntity } from 'src/modules/transaction/transaction/domain/entities/transaction.entity'; import { TransactionEntity } from 'src/modules/transaction/transaction/domain/entities/transaction.entity';
export async function CreateEventCalendarHelper( export async function CreateEventCalendarHelper(
@ -9,11 +8,7 @@ export async function CreateEventCalendarHelper(
) { ) {
let result; let result;
const filePath = path.join( const filePath = './assets/json/google-credential.json';
__dirname,
'../../../../../../../../',
'google-credential.json',
);
const credential = JSON.parse(fs.readFileSync(filePath, 'utf8')); const credential = JSON.parse(fs.readFileSync(filePath, 'utf8'));
const client = new google.auth.JWT({ const client = new google.auth.JWT({