fix: move google credential to folder
continuous-integration/drone/tag Build is passing
Details
continuous-integration/drone/tag Build is passing
Details
parent
dbdc7a0203
commit
e4a631b929
|
@ -1,6 +1,5 @@
|
|||
import { google } from 'googleapis';
|
||||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
import { TransactionEntity } from 'src/modules/transaction/transaction/domain/entities/transaction.entity';
|
||||
|
||||
export async function CreateEventCalendarHelper(
|
||||
|
@ -9,11 +8,7 @@ export async function CreateEventCalendarHelper(
|
|||
) {
|
||||
let result;
|
||||
|
||||
const filePath = path.join(
|
||||
__dirname,
|
||||
'../../../../../../../../',
|
||||
'google-credential.json',
|
||||
);
|
||||
const filePath = './assets/json/google-credential.json';
|
||||
const credential = JSON.parse(fs.readFileSync(filePath, 'utf8'));
|
||||
|
||||
const client = new google.auth.JWT({
|
||||
|
|
Loading…
Reference in New Issue