Skip to content

Commit

Permalink
"database controlled findbyserver id nwo has a return type"
Browse files Browse the repository at this point in the history
  • Loading branch information
Josee9988 committed Jun 23, 2021
1 parent c216cb1 commit 7b272f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/database-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class DatabaseController {
*/
async findByServerId(serverId: string): Promise<IDimg> {
let serverFound = null;
await DimgSchemaData.findOne({serverId: serverId}).then((result) => {
await DimgSchemaData.findOne({serverId: serverId}).then((result?: IDimg) => {
serverFound = result;
});
return serverFound;
Expand Down

0 comments on commit 7b272f1

Please sign in to comment.