Update bug report template

This commit is contained in:
Alex Tran 2022-07-16 10:54:00 -05:00
parent 2e61cf3183
commit d8b26c6da8
No known key found for this signature in database
GPG key ID: E4954BC787B85C8A
5 changed files with 16 additions and 15 deletions

View file

@ -16,8 +16,11 @@ Note: Please search to see if an issue already exists for the bug you encountere
A clear and concise description of what the bug is.
**Task List**
*Please complete the task list below. We need this information to help us reproduce the bug or point out problems in your setup. You are not providing enough info may delay our effort to help you.*
- [ ] I have read thoroughly the README setup and installation instructions.
- [ ] If my setup is different, I have included my docker-compose file.
- [ ] I have included my `docker-compose` file.
- [ ] I have included my redacted `.env` file.
- [ ] I have included information on my machine, and environment.
@ -34,13 +37,10 @@ A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Version [e.g. 22]
**System**
- Phone OS [iOS, Android]: `<version>`
- Server Version: `<version>`
- Mobile App Version: `<version>`
**Additional context**
Add any other context about the problem here.

View file

@ -7,11 +7,12 @@ import { ApiTags } from '@nestjs/swagger';
import { ServerPingResponse } from './response-dto/server-ping-response.dto';
import { ServerVersionReponseDto } from './response-dto/server-version-response.dto';
import { ServerInfoResponseDto } from './response-dto/server-info-response.dto';
import { DataSource } from 'typeorm';
@ApiTags('Server Info')
@Controller('server-info')
export class ServerInfoController {
constructor(private readonly serverInfoService: ServerInfoService, private readonly configService: ConfigService) {}
constructor(private readonly serverInfoService: ServerInfoService) {}
@Get()
async getServerInfo(): Promise<ServerInfoResponseDto> {

View file

@ -1,3 +1,4 @@
import { dataSource } from '@app/database/config/database.config';
import { Logger } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import { NestExpressApplication } from '@nestjs/platform-express';
@ -46,7 +47,6 @@ async function bootstrap() {
customSiteTitle: 'Immich API Documentation',
});
await app.listen(3001, () => {
if (process.env.NODE_ENV == 'development') {
// Generate API Documentation only in development mode

View file

@ -1,5 +1,5 @@
import { PostgresConnectionOptions } from 'typeorm/driver/postgres/PostgresConnectionOptions';
import {DataSource} from "typeorm";
import { DataSource } from 'typeorm';
export const databaseConfig: PostgresConnectionOptions = {
type: 'postgres',

View file

@ -22,7 +22,7 @@ export const handle: Handle = async ({ event, resolve }) => {
firstName,
lastName,
isAdmin,
email,
email
};
}
@ -30,7 +30,7 @@ export const handle: Handle = async ({ event, resolve }) => {
return response;
} catch (error) {
console.log('Error [handle]', error);
console.log('Error [handle]');
return await resolve(event);
}
};
@ -45,7 +45,7 @@ export const getSession: GetSession = async ({ locals }) => {
firstName: locals.user.firstName,
lastName: locals.user.lastName,
isAdmin: locals.user.isAdmin,
email: locals.user.email,
},
email: locals.user.email
}
};
};