Ulak-Server/controllers/check.js
2026-04-25 09:25:16 +03:00

18 lines
513 B
JavaScript

const result_check = require("../middlewares/result_check");
const Members = require("../models/members")
exports.isMembersToChat = async function (chatId, accountId) {
try {
const result = await Members.findOne({
where: {
chatId: chatId,
accountId: accountId
}
}).then(result_check);
console.log(chatId, accountId, result);
return result;
} catch (error) {
console.log(error);
return false;
}
};