Skip to content
Snippets Groups Projects
person.js 401 B
Newer Older
  • Learn to ignore specific revisions
  • Bastien's avatar
    Bastien committed
    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);
        }
    }