Newer
Older
const personDb = require('../models/personDb');
exports.getPersonById = async (personId) => {
try {
return await personDb.getPersonById(personId);
} catch (error) {
throw new Error(error);
}
}
exports.getPersonMovies = async (personId) => {
try {
return await personDb.getPersonMovies(personId);
} catch (error) {
throw new Error(error);
}
}