Skip to content

Commit

Permalink
fix: sms configs
Browse files Browse the repository at this point in the history
  • Loading branch information
okjodom committed Nov 25, 2024
1 parent c9e7c38 commit aa59111
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apps/api/src/sms/sms.controller.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Test, TestingModule } from '@nestjs/testing';
import { TestingModule } from '@nestjs/testing';
import { createTestingModuleWithValidation } from '@bitsacco/testing';

import { SmsController } from './sms.controller';
import { SmsService } from './sms.service';

Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/sms/sms.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
SmsServiceClient,
} from '@bitsacco/common';
import { Inject, Injectable, OnModuleInit } from '@nestjs/common';
import { ClientGrpc } from '@nestjs/microservices';
import { type ClientGrpc } from '@nestjs/microservices';

@Injectable()
export class SmsService implements OnModuleInit {
Expand Down
6 changes: 6 additions & 0 deletions apps/sms/.env.manual
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
NODE_ENV='development'
SMS_GRPC_URL='0.0.0.0:4060'
SMS_AT_API_KEY=5630171cd8c1a35ef67b07bbf1697feaad1a32d891cce6712271bf8c2815beea
SMS_AT_USERNAME=sandbox
SMS_AT_FROM='21000'
SMS_AT_KEYWORD='BITSACCO'
2 changes: 1 addition & 1 deletion apps/sms/src/sms.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import africastalking from 'africastalking';
import * as africastalking from 'africastalking';
import { ConfigService } from '@nestjs/config';
import { Injectable, Logger } from '@nestjs/common';
import { SendBulkSmsDto, SendSmsDto } from '@bitsacco/common';
Expand Down
4 changes: 4 additions & 0 deletions scripts/sms.manual.dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

# docker compose -f compose.yml -p os up -d postgres redis
bunx dotenv -e apps/sms/.env.manual bun run dev sms -- --trace-deprecation
f

0 comments on commit aa59111

Please sign in to comment.