mirror of https://github.com/captn3m0/outliner.git
chore: Cleanup unused helper file
This commit is contained in:
parent
beed823d63
commit
cf2ac7eebc
|
@ -1,13 +0,0 @@
|
||||||
module Outliner
|
|
||||||
class Helper
|
|
||||||
def find_or_create_collection(client, name)
|
|
||||||
collections = client.collections_list(limit: 100)['data']
|
|
||||||
collections.filter!{|c|c['name'] == name}
|
|
||||||
if collections.size >= 1
|
|
||||||
collections[0]['id']
|
|
||||||
else
|
|
||||||
client.collections_create(name: name, description: 'Imported Collection')['data']['id']
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
Reference in New Issue