wip
This commit is contained in:
		@@ -6,7 +6,7 @@ import { ILocalUser } from '../../../../models/user';
 | 
			
		||||
/**
 | 
			
		||||
 * Delete a note
 | 
			
		||||
 */
 | 
			
		||||
module.exports = (params: any, user: ILocalUser) => new Promise(async (res, rej) => {
 | 
			
		||||
export default (params: any, user: ILocalUser) => new Promise(async (res, rej) => {
 | 
			
		||||
	// Get 'noteId' parameter
 | 
			
		||||
	const [noteId, noteIdErr] = $.type(ID).get(params.noteId);
 | 
			
		||||
	if (noteIdErr) return rej('invalid noteId param');
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user