mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Fix lint
This commit is contained in:
parent
7abc1583dc
commit
4a1e06402a
@ -1,5 +1,4 @@
|
||||
import uniqueSlug from './slugify/uniqueSlug'
|
||||
import slug from 'slug'
|
||||
|
||||
const isUniqueFor = (context, type) => {
|
||||
return async (slug) => {
|
||||
@ -25,11 +24,11 @@ export default {
|
||||
},
|
||||
CreateOrganization: async (resolve, root, args, context, info) => {
|
||||
args.slug = args.slug || await uniqueSlug(args.name, isUniqueFor(context, 'Organization'))
|
||||
return resolve(root, args, context, info)
|
||||
return resolve(root, args, context, info)
|
||||
},
|
||||
CreateCategory: async (resolve, root, args, context, info) => {
|
||||
args.slug = args.slug || await uniqueSlug(args.name, isUniqueFor(context, 'Category'))
|
||||
return resolve(root, args, context, info)
|
||||
return resolve(root, args, context, info)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user