mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-14 00:43:02 -06:00
14 lines
340 B
TypeScript
14 lines
340 B
TypeScript
import { check } from 'meteor/check';
|
|
import { Meteor } from 'meteor/meteor';
|
|
import { Calls } from '../../../imports/collections/calls';
|
|
|
|
Meteor.methods({ 'call-audio': callAudio });
|
|
|
|
function callAudio(id: string): string {
|
|
check(id, String);
|
|
|
|
const call = Calls.collection.findOne({ _id: id });
|
|
|
|
return call && call.audio;
|
|
}
|