Commit eeddedb1 authored by Muhammad Dewji's avatar Muhammad Dewji 🐴

Attempts to pass in creds using string object

parent c80d6b4c
......@@ -110,7 +110,7 @@ class GoogleDriveClient
attr_reader :session
def initialize()
@session = GoogleDrive::Session.from_service_account_key(ENV['GOOGLE_DRIVE_SERVICE_ACCOUNT_KEY'])
@session = GoogleDrive::Session.from_service_account_key(StringIO.new(ENV['GOOGLE_DRIVE_SERVICE_ACCOUNT_KEY']))
end
def valid_file?(folders, filename, file_size)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment