Skip to content

Commit

Permalink
assets getBinary to getBinaryAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Sep 13, 2024
1 parent 5d88d96 commit 5d27c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/server/startup/initialData.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Meteor.startup(async () => {

await addUserRolesAsync('rocket.cat', ['bot']);

const buffer = Buffer.from(await Assets.getBinary('avatars/rocketcat.png'));
const buffer = Buffer.from(await Assets.getBinaryAsync('avatars/rocketcat.png'));

const rs = RocketChatFile.bufferToStream(buffer, 'utf8');
const fileStore = FileUpload.getStore('Avatars');
Expand Down

0 comments on commit 5d27c15

Please sign in to comment.