mirror of
https://github.com/mgerb/go-discord-bot
synced 2026-01-12 01:52:49 +00:00
build: eslint
This commit is contained in:
@@ -8,7 +8,7 @@ export class ArchiveService {
|
||||
return _.orderBy(data, 'created_at', ['desc']);
|
||||
}
|
||||
|
||||
public static postVideoArchive(data: any): Promise<any> {
|
||||
public static postVideoArchive(data: { url: string }): Promise<unknown> {
|
||||
return axios.post('/api/video-archive', data);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ISound, SoundListType, SoundType } from '../model';
|
||||
import { axios } from './axios.service';
|
||||
|
||||
const playSound = (sound: SoundType): Promise<any> => {
|
||||
const playSound = (sound: SoundType): Promise<unknown> => {
|
||||
return axios.post('/api/sound/play', { name: sound.name });
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user