This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Database.database().reference().child("myFantasticUniqueKey").setValue("some data") { (error: Error?, reference: DatabaseReference) in | |
if let error = error { | |
print("Error: \(error.localizedDescription)") | |
} else { | |
print("Success!") | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function create(context) { | |
const issue = context.issue; | |
const platform = context.platform; | |
const device = context.device; | |
const app = context.app; | |
let description = issue.description || ''; | |
if (description) { | |
// Add two newlines to separate other data from the description |