fix: checking process.env.NODE_ENV
gitea/salix/pipeline/pr-master This commit looks good Details

This commit is contained in:
Alex Moreno 2024-05-21 13:52:50 +02:00
parent 18bb8a4ea5
commit d884192066
1 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ module.exports = Self => {
* @return {Promise} - The request promise
*/
Self.sendMessage = async function sendMessage(senderFk, recipient, message) {
if (!Self.app.models.Application.isProduction()) {
if (!Self.app.models.Application.isProduction(false)) {
return new Promise(resolve => {
return resolve({
statusCode: 200,
@ -149,7 +149,7 @@ module.exports = Self => {
* @return {Promise} - The request promise
*/
Self.getUserStatus = async function getUserStatus(username) {
if (!Self.app.models.Application.isProduction()) {
if (!Self.app.models.Application.isProduction(false)) {
return new Promise(resolve => {
return resolve({
data: {