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

16 lines
416 B
JavaScript

const result_check = require("../../middlewares/result_check");
const Accounts = require("../../models/accounts");
exports.destroy = async function (aid) {
try {
const isComplete = await Accounts.destroy({
where: {
id: aid
}
}).then(result_check);
return isComplete;
} catch (error) {
console.log(error);
return false;
}
};