Github & Portfolio
🖥 Project/Kiwi(2)
-
[Kiwi-학과커뮤니티] 회원 학과변경 API 구현
schema.js updateDept(id: ID!, departmentId: ID!): Boolean index.js updateDept: require('./admin/user/updateDept'), resolvers/admin/user/updateDept.js const models = require('../../../../models'); const { ConflictError } = require('../../../errors/errors'); const isAdmin = require('../../../middlewares/isAdmin'); const { createAdminLog } = require('../../../services/log.service'); const { setCach..
-
[Kiwi-학과커뮤니티] 회원탈퇴 API 구현
schema.js updateUserStatus(status: Int!): Boolean index.js updateUserStatus: require('./user/updateUserStatus'), resolvers/user/updateUserStatus.js const models = require('../../../models'); const { ConflictError } = require('../../errors/errors'); const { setCachedUserUpdated } = require('../../../api/caching'); module.exports = async ({ status }, { id }) => { return await models.user .update( ..