mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-01-20 20:01:22 +00:00
16 lines
311 B
JavaScript
16 lines
311 B
JavaScript
export default function create() {
|
|
return {
|
|
factory: async ({ args, neodeInstance }) => {
|
|
const defaults = {
|
|
type: 'crowdfunding',
|
|
status: 'permanent',
|
|
}
|
|
args = {
|
|
...defaults,
|
|
...args,
|
|
}
|
|
return neodeInstance.create('Badge', args)
|
|
},
|
|
}
|
|
}
|