Refactor code

This commit is contained in:
sallbet 2023-03-13 03:55:14 +03:00
parent 62f73e87d1
commit 7dc8d12acb
Signed by: sallbet
GPG Key ID: 3C8A1BC17088B308
2 changed files with 5 additions and 5 deletions

View File

@ -63,7 +63,7 @@ async function block(req, res) {
userId = targetUser.id;
userName = targetUser.name;
let ret = null;
let ret;
if (blocking) {
ret = await UserBlock.findOrCreate({
where: {
@ -85,8 +85,8 @@ async function block(req, res) {
/*
* delete possible dm channel
*/
let dmu1id = null;
let dmu2id = null;
let dmu1id;
let dmu2id;
if (user.id > userId) {
dmu1id = userId;
dmu2id = user.id;

View File

@ -78,8 +78,8 @@ async function startDm(req, res) {
/*
* start DM session
*/
let dmu1id = null;
let dmu2id = null;
let dmu1id;
let dmu2id;
if (user.id > userId) {
dmu1id = userId;
dmu2id = user.id;