Skip to content

Commit

Permalink
Fixing tsc build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kadraman committed May 9, 2024
1 parent 34dd65c commit 1ba60a4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

# nvm use --lts
docker rmi iwa-api:latest
rm -rf dist
npm run build
Expand Down
2 changes: 1 addition & 1 deletion src/configs/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class AppConfig {
private dbName: string = config.get('App.dbConfig.database') || 'iwa';
private dbUser: string = config.get('App.dbConfig.user') || 'iwa';
private dbPassword: string = config.get('App.dbConfig.password') || 'iwa';
public mongoUrl: string = (config.util.getEnv() == "production"
public mongoUrl: string = (config.util.getEnv('NODE_ENV') == "production"
? `mongodb://${this.dbUser}:${this.dbPassword}@${this.dbHost}:${this.dbPort}/${this.dbName}?authSource=admin`
: `mongodb://${this.dbHost}:${this.dbPort}/${this.dbName}`
);
Expand Down
3 changes: 2 additions & 1 deletion src/controllers/message.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ export class MessageController {
user_id: req.body.user_id,
text: req.body.text,
is_read: false,
sent_date: new Date(Date.now())
sent_date: new Date(Date.now()),
read_date: new Date(Date.now())
};
this.message_service.createMessage(message_params, (err: any, message_data: IMessage) => {
if (err) {
Expand Down
4 changes: 0 additions & 4 deletions src/modules/users/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export interface IUser {
last_name: String;
};
email: String;
password: String;
phone_number: String;
address: {
street: String;
Expand All @@ -37,10 +36,7 @@ export interface IUser {
zip: String;
country: String;
}
verify_code: String;
is_enabled: Boolean;
password_reset: Boolean;
mfa_enabled: Boolean;
is_admin: Boolean;
is_deleted?: Boolean;
modification_notes: ModificationNote[]
Expand Down

0 comments on commit 1ba60a4

Please sign in to comment.